From f08fb8187109084b6d2fb8aa3415dd4aba579010 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 16 Mar 2023 06:20:10 +0200 Subject: [PATCH] restore autoflush --- files/helpers/config/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 860f52045..448a2864b 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -8,7 +8,7 @@ import tldextract import datetime engine = create_engine(environ.get("DATABASE_URL").strip()) -db_session = scoped_session(sessionmaker(bind=engine, autoflush=False)) +db_session = scoped_session(sessionmaker(bind=engine)) db = db_session() t = datetime.datetime.now()