From 4a3debfbbf903fe34547c5346113b1bc343f1a97 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Wed, 18 Jan 2023 20:44:15 +0100 Subject: [PATCH] :sparkles: Moved QR-code down a bit --- classquiz/db/models.py | 1 + frontend/src/routes/admin/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}