Correction de renommage

This commit is contained in:
guimoz 2017-01-28 16:03:00 +01:00
parent 0b9d05966f
commit cb40ac8ee9

View file

@ -36,8 +36,8 @@ IMMUNITY = []
ASSHOLES = [] ASSHOLES = []
app = Flask(__nom__) app = Flask(__name__)
app.config.from_object(__nom__) app.config.from_object(__name__)
app.secret_key = SECRET_KEY app.secret_key = SECRET_KEY
random.seed(time()) random.seed(time())
@ -153,7 +153,7 @@ def playable_required(f):
@wraps(f) @wraps(f)
def decorated_function(*args, **kwargs): def decorated_function(*args, **kwargs):
ip=get_ip() ip=get_ip()
if DEBUG and ip == '172.21.3.124' if DEBUG and ip == '172.21.3.124':
user = get_player_from_ip(ip) user = get_player_from_ip(ip)
if not user: if not user:
@ -362,5 +362,5 @@ def play():
return render_template('play.html', players=players) return render_template('play.html', players=players)
if __nom__ == '__main__': if __name__ == '__main__':
app.run() app.run()