From 04c87adb4c8d51febf31c8a5eb26e0e40b648660 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Wed, 5 Oct 2022 11:57:33 +0200 Subject: [PATCH] :bug: Fixed custom-field export-stuff --- classquiz/routers/quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classquiz/routers/quiz.py b/classquiz/routers/quiz.py index 89e4b59..db2beb2 100644 --- a/classquiz/routers/quiz.py +++ b/classquiz/routers/quiz.py @@ -257,7 +257,7 @@ async def export_quiz_answers(export_token: str, game_pin: str): if quiz is None: raise HTTPException(status_code=404, detail="quiz not found") - player_fields = await redis.hgetall(f"game:{game_pin}:player:custom_fields") + player_fields = await redis.hgetall(f"game:{game_pin}:players:custom_fields") spreadsheet = await generate_spreadsheet(quiz=quiz, quiz_results=data, player_fields=player_fields) def iter_file():