Fix contestant reference thanks elpy

This commit is contained in:
Dane Johnson 2023-02-19 11:29:48 -06:00
parent b29415a0d7
commit 793d155c78

View File

@ -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)