mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +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,
|
pts,
|
||||||
None,
|
None,
|
||||||
updates.date,
|
updates.date,
|
||||||
None
|
updates.seq
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -164,6 +164,7 @@ class SQLiteStorage(Storage):
|
|||||||
if value == object:
|
if value == object:
|
||||||
return self.conn.execute(
|
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()
|
).fetchall()
|
||||||
else:
|
else:
|
||||||
with self.conn:
|
with self.conn:
|
||||||
|
Loading…
Reference in New Issue
Block a user