Skip to content

Commit

Permalink
Fixed wrong sessionmaker for sync scoped_session
Browse files Browse the repository at this point in the history
  • Loading branch information
zikphil committed Dec 7, 2021
1 parent 1e0b704 commit 8bfdfff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/python/sqlalchemy-oso/sqlalchemy_oso/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _scopefunc():
get_oso, get_user, get_checked_permissions, **kwargs
)

return async_scoped_session(factory, scopefunc=_scopefunc)
return authorized_sessionmaker(factory, scopefunc=_scopefunc)


def async_scoped_session(
Expand Down

0 comments on commit 8bfdfff

Please sign in to comment.