Skip to content

Commit

Permalink
Fix execute() missing "await"
Browse files Browse the repository at this point in the history
  • Loading branch information
eyMarv authored Feb 29, 2024
1 parent dee698f commit a6a5f17
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 a6a5f17

Please sign in to comment.