2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Update get_peer_by_username query

This commit is contained in:
Dan 2022-09-01 21:27:59 +02:00
parent 3bd0820946
commit 7055ee648e

View File

@ -151,7 +151,8 @@ class SQLiteStorage(Storage):
async def get_peer_by_username(self, username: str):
r = self.conn.execute(
"SELECT id, access_hash, type, last_update_on FROM peers WHERE username = ?",
"SELECT id, access_hash, type, last_update_on FROM peers WHERE username = ?"
"ORDER BY last_update_on DESC",
(username,)
).fetchone()