From e3b78faf989fb5ee16192b1287ec1648262b6777 Mon Sep 17 00:00:00 2001 From: klafyvel Date: Sun, 28 Jan 2018 23:24:01 +0100 Subject: [PATCH] Fix le bug quand on tue personne. --- roulette.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roulette.py b/roulette.py index ad63753..24e364b 100755 --- a/roulette.py +++ b/roulette.py @@ -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: