File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
futuramaapi/routers/services Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,11 @@ def request(self) -> Request:
5858
5959 @property
6060 def __auth_session_statement (self ) -> Select [tuple [AuthSessionModel ]]:
61- statement : Select [tuple [AuthSessionModel ]] = select (AuthSessionModel )
62- statement = statement .where (AuthSessionModel .key == self .request .cookies [self ._cookie_auth_key ])
63- statement = statement .options (selectinload (AuthSessionModel .user ))
64- return statement
61+ return (
62+ select (AuthSessionModel )
63+ .where (AuthSessionModel .key == self .request .cookies [self ._cookie_auth_key ])
64+ .options (selectinload (AuthSessionModel .user ))
65+ )
6566
6667 async def _get_current_user (self ) -> UserModel | None :
6768 if self ._cookie_auth_key not in self .request .cookies :
You can’t perform that action at this time.
0 commit comments