Skip to content

Commit a123b30

Browse files
committed
Fix session
1 parent 3d4cb64 commit a123b30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/dialog/models/helpers.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66

77
def create_session(identifier=None, dbsession=None):
8+
if not dbsession:
9+
dbsession = next(get_session())
10+
811
if identifier is None:
912
identifier = uuid.uuid4().hex
1013

0 commit comments

Comments
 (0)