From cb40ac8ee9f7da07381aaec4f1b13599998108ee Mon Sep 17 00:00:00 2001 From: guimoz Date: Sat, 28 Jan 2017 16:03:00 +0100 Subject: [PATCH] Correction de renommage --- roulette.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roulette.py b/roulette.py index 6f8ff72..a3d8b8e 100644 --- a/roulette.py +++ b/roulette.py @@ -36,8 +36,8 @@ IMMUNITY = [] ASSHOLES = [] -app = Flask(__nom__) -app.config.from_object(__nom__) +app = Flask(__name__) +app.config.from_object(__name__) app.secret_key = SECRET_KEY random.seed(time()) @@ -153,8 +153,8 @@ def playable_required(f): @wraps(f) def decorated_function(*args, **kwargs): ip=get_ip() - if DEBUG and ip == '172.21.3.124' - user = get_player_from_ip(ip) + if DEBUG and ip == '172.21.3.124': + user = get_player_from_ip(ip) if not user: return render_template('not_subscribed.html') @@ -362,5 +362,5 @@ def play(): return render_template('play.html', players=players) -if __nom__ == '__main__': +if __name__ == '__main__': app.run()