tmp fixup db

This commit is contained in:
Tim Van Baak 2021-06-13 18:08:18 -07:00
parent 73dc2127e7
commit 3c09dcc5f4
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class DbContext:
cursor.close() cursor.close()
# Create a thread-safe session factory # Create a thread-safe session factory
self.session = scoped_session(sessionmaker(bind=self.engine), scopefunc=get_ident) self.session = scoped_session(
sessionmaker(bind=self.engine), scopefunc=get_ident
)
def __call__(self, *args, **kwargs): def __call__(self, *args, **kwargs):
"""Provides shortcut access to session.execute.""" """Provides shortcut access to session.execute."""