Moved QR-code down a bit

This commit is contained in:
Mawoka
2023-01-18 20:44:15 +01:00
parent 6227238af1
commit 4a3debfbbf
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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: