forked from rDrama/rDrama
master
parent
d137c6f130
commit
0dc62cc38e
|
@ -170,7 +170,7 @@ def before_request():
|
||||||
g.system="other/other"
|
g.system="other/other"
|
||||||
|
|
||||||
@app.teardown_appcontext
|
@app.teardown_appcontext
|
||||||
def teardown_request():
|
def teardown_request(error):
|
||||||
if hasattr(g, 'db') and g.db:
|
if hasattr(g, 'db') and g.db:
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
g.db.close()
|
g.db.close()
|
||||||
|
|
Loading…
Reference in New Issue