Refactored web.py to shrink size of file

This commit is contained in:
Ozzie Isaacs
2022-04-26 11:49:06 +02:00
parent 47414ada69
commit e7464f2694
27 changed files with 639 additions and 581 deletions
+1 -1
View File
@@ -857,7 +857,7 @@ def init_db(app_db_path, user_credentials=None):
def get_new_session_instance():
new_engine = create_engine(u'sqlite:///{0}'.format(cli.settings_path), echo=False)
new_engine = create_engine(u'sqlite:///{0}'.format(app_DB_path), echo=False)
new_session = scoped_session(sessionmaker())
new_session.configure(bind=new_engine)