Fixes for sqlalachemy2

This commit is contained in:
Ozzie Isaacs
2023-04-15 13:22:17 +02:00
parent 33c19b20f4
commit dba83a2900
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ engine = create_engine('sqlite:///{0}'.format(cli_param.gd_path), echo=False)
Base = declarative_base()
# Open session for database connection
Session = sessionmaker()
Session = sessionmaker(autoflush=False)
Session.configure(bind=engine)
session = scoped_session(Session)