Skip to content

Commit

Permalink
remove future=True from sessionmaker
Browse files Browse the repository at this point in the history
  • Loading branch information
roflcoopter committed Jan 2, 2025
1 parent f60da5c commit ca9cfde
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 ca9cfde

Please sign in to comment.