Skip to content

Commit fc9ae80

Browse files
clean
1 parent e866789 commit fc9ae80

File tree

2 files changed

+1
-411
lines changed

2 files changed

+1
-411
lines changed

src/quart_sqlalchemy/sim/handle.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ class APIKeySet(t.NamedTuple):
3737
secret_key: str
3838

3939

40-
def get_session_proxy():
41-
from .app import db
42-
43-
return db.bind.Session()
44-
45-
4640
class HandlerBase:
4741
logic: Logic
4842
session: Session
@@ -51,7 +45,7 @@ class HandlerBase:
5145
"""
5246

5347
def __init__(self, session: t.Optional[Session], logic: t.Optional[Logic] = None):
54-
self.session = session or get_session_proxy()
48+
self.session = session
5549
self.logic = logic or Logic()
5650

5751

0 commit comments

Comments
 (0)