🐛 Fixed selection not highlighting correctly

This commit is contained in:
Mawoka
2023-05-25 09:57:31 +02:00
parent 61f62c7780
commit 79adb925ce
2 changed files with 2 additions and 3 deletions
-2
View File
@@ -137,8 +137,6 @@ class QuizQuestion(BaseModel):
@validator("answers")
def answers_not_none_if_abcd_type(cls, v, values):
print(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: