Skip to content

Commit

Permalink
Merge pull request #878 from roflcoopter/feature/sessionmaker-future
Browse files Browse the repository at this point in the history
remove future=True from sessionmaker
  • Loading branch information
roflcoopter authored Jan 2, 2025
2 parents f60da5c + ca9cfde commit 9c681d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viseron/components/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def create_database(self) -> None:
elif current_rev != _script.get_current_head():
self._run_migrations()

self._get_session = scoped_session(sessionmaker(bind=self.engine, future=True))
self._get_session = scoped_session(sessionmaker(bind=self.engine))
self._get_session_expire = scoped_session(
sessionmaker(bind=self.engine, future=True, expire_on_commit=True)
sessionmaker(bind=self.engine, expire_on_commit=True)
)
startup_chores(self._get_session)

Expand Down

0 comments on commit 9c681d9

Please sign in to comment.