mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2024-12-24 16:44:46 +03:00
фикс в BaseQuestionsTask
This commit is contained in:
parent
afbd277428
commit
b7cba315d7
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user