diff --git a/plugins/genshin/quiz.py b/plugins/genshin/quiz.py index b6d289a4..f681fa4f 100644 --- a/plugins/genshin/quiz.py +++ b/plugins/genshin/quiz.py @@ -36,8 +36,8 @@ class QuizPlugin(Plugin, BasePlugin): return None if len(question_id_list) == 0: return None - index = random.choice(question_id_list) # nosec - question = await self.quiz_service.get_question(question_id_list[index]) + question_id = random.choice(question_id_list) # nosec + question = await self.quiz_service.get_question(question_id) _options = [] correct_option = None for answer in question.answers: