Ajout de plus de DEBUG

This commit is contained in:
guimoz 2017-01-27 01:06:04 +01:00
parent bdec6b8603
commit fc77df4254

View file

@ -306,8 +306,9 @@ def banned():
@app.route('/banned_ip')
def banned_ip():
# Liste des ip pour récupération par babel et plop
if get_ip() not in ['10.7.0.39', '10.7.0.254' ,'10.13.0.1', '10.69.8.5' ,'10.69.2.219']:
abort(403)
if not DEBUG:
if get_ip() not in ['10.7.0.39', '10.7.0.254' ,'10.13.0.1', '10.69.8.5' ,'10.69.2.219']:
abort(403)
con = connect_sqlite()
cur = con.cursor()