📝 Added CONTRIBUTING.md
This commit is contained in:
@@ -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.
|
||||
@@ -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:
|
||||
|
||||
Vendored
+1
@@ -36,6 +36,7 @@ export interface Answer {
|
||||
answer: string;
|
||||
}
|
||||
|
||||
// TODO WTF
|
||||
export interface Answer {
|
||||
username: string;
|
||||
answer: string;
|
||||
|
||||
@@ -145,7 +145,6 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Product 1 -->
|
||||
{#each quizzes as quiz}
|
||||
<tr
|
||||
class="bg-white border-b dark:bg-gray-800 dark:border-gray-700"
|
||||
|
||||
Reference in New Issue
Block a user