From 724e5e51efa2adfa937188e2ec0044bb498ad1da Mon Sep 17 00:00:00 2001 From: Mawoka Date: Fri, 7 Oct 2022 17:10:20 +0200 Subject: [PATCH] :bug: Fixed quiz-export --- classquiz/helpers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classquiz/helpers/__init__.py b/classquiz/helpers/__init__.py index 22093d0..c9b8346 100644 --- a/classquiz/helpers/__init__.py +++ b/classquiz/helpers/__init__.py @@ -55,7 +55,7 @@ async def generate_spreadsheet(quiz_results: dict, quiz: Quiz, player_fields: di worksheet.write(0, 5, "Wrong answers") for i, _ in enumerate(quiz_results): question = quiz.questions[i] - answer_data = quiz_results[str(i)] + answer_data = quiz_results[i] worksheet.write(i + 1, 0, question["question"]) worksheet.write(i + 1, 1, question["time"])