mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix saving entity types in sqlite
ty is already a subclass of int.
This commit is contained in:
@@ -245,7 +245,7 @@ class SQLiteSession(Session):
|
||||
try:
|
||||
c.executemany(
|
||||
'insert or replace into entity values (?,?,?)',
|
||||
[(e.id, e.access_hash, e.ty.value) for e in entities]
|
||||
[(e.id, e.access_hash, e.ty) for e in entities]
|
||||
)
|
||||
finally:
|
||||
c.close()
|
||||
|
Reference in New Issue
Block a user