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():