📝 Added CONTRIBUTING.md
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user