forked from rDrama/rDrama
1
0
Fork 0

fix voting

master
Aevann1 2022-06-26 08:31:53 +02:00
parent b450d5bb8c
commit 39ee9e5ff1
1 changed files with 3 additions and 4 deletions

View File

@ -103,10 +103,9 @@ def teardown_request(error):
def after_request(response):
response.headers.add("Strict-Transport-Security", "max-age=31536000")
response.headers.add("X-Frame-Options", "deny")
if response.status_code == 200:
g.db.commit()
g.db.close()
del g.db
g.db.commit()
g.db.close()
del g.db
return response
if app.config["SERVER_NAME"] == 'localhost':