mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Remove missed async keywords from the revert
This should've been in 7d21b40401
.
This completes the revert of async sessions.
This commit is contained in:
@@ -215,7 +215,7 @@ class SQLiteSession(MemorySession):
|
||||
entity_id, state.pts, state.qts,
|
||||
state.date.timestamp(), state.seq)
|
||||
|
||||
async def get_update_states(self):
|
||||
def get_update_states(self):
|
||||
c = self._cursor()
|
||||
try:
|
||||
rows = c.execute('select id, pts, qts, date, seq from update_state').fetchall()
|
||||
@@ -332,7 +332,7 @@ class SQLiteSession(MemorySession):
|
||||
return self._execute(
|
||||
'select id, hash from entities where name = ?', name)
|
||||
|
||||
async def get_entity_rows_by_id(self, id, exact=True):
|
||||
def get_entity_rows_by_id(self, id, exact=True):
|
||||
if exact:
|
||||
return self._execute(
|
||||
'select id, hash from entities where id = ?', id)
|
||||
|
Reference in New Issue
Block a user