From 793d155c7838d16ac69cff3d8d571b94e045c87b Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Sun, 19 Feb 2023 11:29:48 -0600 Subject: [PATCH] Fix contestant reference thanks elpy --- venture/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/venture/app.py b/venture/app.py index 2f7ab13..6cb9f39 100644 --- a/venture/app.py +++ b/venture/app.py @@ -35,7 +35,7 @@ def on_join_contestant(data): @socketio.on('buzz') def on_buzz(): - contestant = session.game[request.sid] + contestant = session.game.contestants[request.sid] if contestant.locked: return emit('contestant-buzzed', {'sid': request.sid}, to=session.room)