expunge all instances when the request is done
parent
4564dddfab
commit
a9a2ba7038
|
@ -66,4 +66,5 @@ def after_request(response:Response):
|
||||||
@app.teardown_appcontext
|
@app.teardown_appcontext
|
||||||
def teardown_request(error):
|
def teardown_request(error):
|
||||||
db.rollback()
|
db.rollback()
|
||||||
|
db.expunge_all()
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
|
|
Loading…
Reference in New Issue