diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ae039d2 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,24 @@ +# Contribute to ClassQuiz + +For the development-setup, please check out the +docs: [classquiz.mawoka.eu/docs/develop](https://classquiz.mawoka.eu/docs/develop) + +## Formatting git-commits + +Please use [Gitmoji](https://gitmoji.dev/) to format your commits. + +## Opening PRs + +Just do so. + +## Found a bug + +If it is a security-related bug, please contact me at [mawoka.eu/contact](https://mawoka.eu/contact). If not, just open +an issue here on GitHub. + +**Please try to reproduce the bug with the adblocker disabled**, so I will be able to see the bug in Sentry. + +## Want to translate? + +Go to [Weblate](https://translate.mawoka.eu/projects/classquiz/frontend/). If the language isn't available, please open +an issue here, so I'll be able to add it. \ No newline at end of file diff --git a/classquiz/routers/quiz.py b/classquiz/routers/quiz.py index 3a3f681..e786b0c 100644 --- a/classquiz/routers/quiz.py +++ b/classquiz/routers/quiz.py @@ -38,6 +38,7 @@ async def get_quiz_from_id(quiz_id: str, user: User | None = Depends(get_current raise HTTPException(status_code=400, detail="badly formed quiz id") if user is None: quiz = await Quiz.objects.get_or_none(id=quiz_id, public=True) + # TODO: User can't be none else: quiz = await Quiz.objects.get_or_none(id=quiz_id, user_id=user.id) if quiz is None: diff --git a/frontend/src/app.d.ts b/frontend/src/app.d.ts index d0a69f9..6cc1bbf 100644 --- a/frontend/src/app.d.ts +++ b/frontend/src/app.d.ts @@ -36,6 +36,7 @@ export interface Answer { answer: string; } +// TODO WTF export interface Answer { username: string; answer: string; diff --git a/frontend/src/routes/overview.svelte b/frontend/src/routes/overview.svelte index 83aaa63..0ed07bc 100644 --- a/frontend/src/routes/overview.svelte +++ b/frontend/src/routes/overview.svelte @@ -145,7 +145,6 @@
- {#each quizzes as quiz}