Fix le bug quand on tue personne.

This commit is contained in:
klafyvel 2018-01-28 23:24:01 +01:00 committed by root
parent bea633782b
commit e3b78faf98

View file

@ -400,8 +400,9 @@ def play():
elif "up" in STATE or player_has_immunity:
# Traitement de la requête de bannissement
if request.method == 'POST':
target_id = int(request.form['target_id'])
target_id = request.form['target_id']
if target_id != 'none':
target_id = int(target_id)
if is_banned(target_id):
flash(u'Utilisateur déjà tranché, il faut en choisir un autre.')
else: