expunge all instances when the request is done

pull/142/head
Aevann 2023-03-16 07:07:29 +02:00
parent 4564dddfab
commit a9a2ba7038
1 changed files with 1 additions and 0 deletions

View File

@ -66,4 +66,5 @@ def after_request(response:Response):
@app.teardown_appcontext
def teardown_request(error):
db.rollback()
db.expunge_all()
stdout.flush()