Fix contestant reference thanks elpy
This commit is contained in:
parent
b29415a0d7
commit
793d155c78
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user