🔇 Removed prints

This commit is contained in:
Mawoka
2022-05-08 15:43:48 +02:00
parent db9bc40d6f
commit 60a7c9b377
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -180,12 +180,10 @@ async def get_final_results(sid: str, _data: dict):
@sio.event
async def get_export_token(sid):
session = await sio.get_session(sid)
print("generating export token")
if not session["admin"]:
return
game_data = PlayGame(**json.loads(await redis.get(f"game:{session['game_pin']}")))
results = await generate_final_results(game_data, session["game_pin"])
token = os.urandom(32).hex()
await redis.set(f"export_token:{token}", json.dumps(results))
print("generated export token", token)
await sio.emit("export_token", token, room=sid)