From a4d54a18ec48e28a75029f1b5d3a14987f339abc Mon Sep 17 00:00:00 2001 From: Mawoka Date: Tue, 4 Oct 2022 16:41:17 +0200 Subject: [PATCH] :sparkles: Implemented Vote-Thing for API --- classquiz/routers/live.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classquiz/routers/live.py b/classquiz/routers/live.py index 9196304..e140bd7 100644 --- a/classquiz/routers/live.py +++ b/classquiz/routers/live.py @@ -17,6 +17,7 @@ from classquiz.db.models import ( RangeQuizAnswer, ABCDQuizAnswer, QuizQuestionType, + VotingQuizAnswer, ) from classquiz.auth import check_api_key from classquiz.socket_server import ReturnQuestion, sio @@ -35,7 +36,7 @@ class _ABCDQuizAnswer(ABCDQuizAnswer): class _QuizQuestion(QuizQuestion): - answers: list[ABCDQuizAnswer] | RangeQuizAnswer + answers: list[ABCDQuizAnswer] | RangeQuizAnswer | list[VotingQuizAnswer] class _GetLivePlayGame(PlayGame):