Fix contestant reference thanks elpy
This commit is contained in:
		@@ -35,7 +35,7 @@ def on_join_contestant(data):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@socketio.on('buzz')
 | 
					@socketio.on('buzz')
 | 
				
			||||||
def on_buzz():
 | 
					def on_buzz():
 | 
				
			||||||
    contestant = session.game[request.sid]
 | 
					    contestant = session.game.contestants[request.sid]
 | 
				
			||||||
    if contestant.locked:
 | 
					    if contestant.locked:
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
    emit('contestant-buzzed', {'sid': request.sid}, to=session.room)
 | 
					    emit('contestant-buzzed', {'sid': request.sid}, to=session.room)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user