mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 00:32:39 +00:00
Recover updates in date ascending order
This commit is contained in:
parent
fd5d19dab1
commit
55aa162a38
@ -603,7 +603,7 @@ class Client(Methods):
|
||||
pts,
|
||||
None,
|
||||
updates.date,
|
||||
None
|
||||
updates.seq
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -163,7 +163,8 @@ class SQLiteStorage(Storage):
|
||||
async def update_state(self, value: Tuple[int, int, int, int, int] = object):
|
||||
if value == object:
|
||||
return self.conn.execute(
|
||||
"SELECT id, pts, qts, date, seq FROM update_state"
|
||||
"SELECT id, pts, qts, date, seq FROM update_state "
|
||||
"ORDER BY date ASC"
|
||||
).fetchall()
|
||||
else:
|
||||
with self.conn:
|
||||
|
Loading…
Reference in New Issue
Block a user