tmp fixup db
This commit is contained in:
parent
73dc2127e7
commit
3c09dcc5f4
|
@ -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."""
|
||||||
|
|
Loading…
Reference in New Issue