фикс в BaseQuestionsTask

This commit is contained in:
Maxim Slipenko 2024-08-13 22:03:36 +03:00
parent afbd277428
commit b7cba315d7

View File

@ -47,7 +47,7 @@ class BaseQuestionsTask(SimpleVariantsBaseTask):
self.correct = correct_answer self.correct = correct_answer
async def verify(self, data): async def verify(self, data):
return self.variants[data] == self.correct return self.variants[int(data)] == self.correct
class QuestionInlineButtonsTask(BaseQuestionsTask, SimpleInlineButtonsTask): class QuestionInlineButtonsTask(BaseQuestionsTask, SimpleInlineButtonsTask):