From b7cba315d79d0bbf0416c1d0bcf7171211a7cafb Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 13 Aug 2024 22:03:36 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B2=20BaseQuestio?= =?UTF-8?q?nsTask?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standard/welcome/verifications_methods/question.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocab_modules/ocab_modules/standard/welcome/verifications_methods/question.py b/src/ocab_modules/ocab_modules/standard/welcome/verifications_methods/question.py index eb25afc..6e9bca0 100644 --- a/src/ocab_modules/ocab_modules/standard/welcome/verifications_methods/question.py +++ b/src/ocab_modules/ocab_modules/standard/welcome/verifications_methods/question.py @@ -47,7 +47,7 @@ class BaseQuestionsTask(SimpleVariantsBaseTask): self.correct = correct_answer async def verify(self, data): - return self.variants[data] == self.correct + return self.variants[int(data)] == self.correct class QuestionInlineButtonsTask(BaseQuestionsTask, SimpleInlineButtonsTask):