Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 4, 2022
1 parent f5b40c7 commit 3cdb1dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/sqlalchemy/async_oauth_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,20 @@ async def async_save(self, installation: Installation):
await database.execute(self.bots.insert(), b)

async def async_find_bot(
self, *, enterprise_id: Optional[str], team_id: Optional[str], is_enterprise_install: Optional[bool]
self,
*,
enterprise_id: Optional[str],
team_id: Optional[str],
is_enterprise_install: Optional[bool],
) -> Optional[Bot]:
c = self.bots.c
query = (
self.bots.select()
.where(
and_(
c.enterprise_id == enterprise_id, c.team_id == team_id, c.is_enterprise_install == is_enterprise_install
c.enterprise_id == enterprise_id,
c.team_id == team_id,
c.is_enterprise_install == is_enterprise_install,
)
)
.order_by(desc(c.installed_at))
Expand Down

0 comments on commit 3cdb1dc

Please sign in to comment.