Skip to content

Commit

Permalink
Refactor to reduce repetition, type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxstr committed Feb 4, 2024
1 parent d7ed1c6 commit 7d7d58c
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 297 deletions.
2 changes: 1 addition & 1 deletion src/flask_session/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def _get_interface(self, app):
)

common_params = {
"app": app,
"key_prefix": SESSION_KEY_PREFIX,
"use_signer": SESSION_USE_SIGNER,
"permanent": SESSION_PERMANENT,
Expand Down Expand Up @@ -141,7 +142,6 @@ def _get_interface(self, app):
elif SESSION_TYPE == "sqlalchemy":
session_interface = SqlAlchemySessionInterface(
**common_params,
app=app,
db=SESSION_SQLALCHEMY,
table=SESSION_SQLALCHEMY_TABLE,
sequence=SESSION_SQLALCHEMY_SEQUENCE,
Expand Down
Loading

0 comments on commit 7d7d58c

Please sign in to comment.