diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index b1b879c37..f22609c1b 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -66,4 +66,5 @@ def after_request(response:Response): @app.teardown_appcontext def teardown_request(error): db.rollback() + db.expunge_all() stdout.flush()