Skip to content

Commit

Permalink
Merge pull request #48 from eyMarv/patch-1
Browse files Browse the repository at this point in the history
Fix execute() missing "await"
  • Loading branch information
wulan17 committed Mar 1, 2024
2 parents dee698f + a6a5f17 commit e74e54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/storage/sqlite_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def get_peer_by_username(self, username: str):
r = await q.fetchone()

if r is None:
r2 = self.conn.execute(
r2 = await self.conn.execute(
"SELECT peer_id, last_update_on FROM usernames WHERE id = ?"
"ORDER BY last_update_on DESC",
(username,)
Expand Down

0 comments on commit e74e54c

Please sign in to comment.