📝 Added CONTRIBUTING.md

This commit is contained in:
Mawoka
2022-04-06 20:16:00 +02:00
parent cfb5dbcb66
commit 483ea6eac4
4 changed files with 26 additions and 1 deletions
+1
View File
@@ -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: