Implemented in Live-Game

This commit is contained in:
Mawoka
2022-10-04 15:38:15 +02:00
parent 512fc9e8ea
commit 60822283e3
11 changed files with 338 additions and 144 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ class QuizQuestion(BaseModel):
if values["type"] == QuizQuestionType.RANGE and type(v) != RangeQuizAnswer:
raise ValueError("Answer must be from type RangeQuizAnswer if type is RANGE")
if values["type"] == QuizQuestionType.VOTING and type(v[0]) != VotingQuizAnswer:
raise ValueError("Answer must be from type RangeQuizAnswer if type is RANGE")
raise ValueError("Answer must be from type VotingQuizAnswer if type is VOTING")
return v