diff --git a/classquiz/db/models.py b/classquiz/db/models.py index 1955e14..87b4b06 100644 --- a/classquiz/db/models.py +++ b/classquiz/db/models.py @@ -132,6 +132,7 @@ class QuizQuestion(BaseModel): @validator("answers") def answers_not_none_if_abcd_type(cls, v, values): + # print(values) if values["type"] == QuizQuestionType.ABCD and type(v[0]) != ABCDQuizAnswer: raise ValueError("Answers can't be none if type is ABCD") if values["type"] == QuizQuestionType.RANGE and type(v) != RangeQuizAnswer: diff --git a/frontend/src/routes/admin/+page.svelte b/frontend/src/routes/admin/+page.svelte index 4a0f4e8..96452d9 100644 --- a/frontend/src/routes/admin/+page.svelte +++ b/frontend/src/routes/admin/+page.svelte @@ -172,7 +172,7 @@ QR code to join the game

{$t('words.pin')}: {quiz_data.game_pin}