From 800f8dee9940052a7e29825dc0284d0f671361b8 Mon Sep 17 00:00:00 2001 From: guimoz Date: Fri, 27 Jan 2017 09:40:15 +0100 Subject: [PATCH] Logical error --- roulette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roulette.py b/roulette.py index 5f6332d..29053d7 100644 --- a/roulette.py +++ b/roulette.py @@ -187,7 +187,7 @@ def playable_required(f): ip=get_ip() user = get_player_from_ip(ip) - if not session['ip']: + if 'ip' in session: # On enregistre l'ip afin d'éviter les problèmes lors du déplacement des user (rez <-> Supelec) session['ip'] = ip