mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
Update get_peer_by_username query
This commit is contained in:
parent
3bd0820946
commit
7055ee648e
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue