mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-18 04:20:57 +03:00
Fix saving entity types in sqlite
ty is already a subclass of int.
This commit is contained in:
parent
05457eaf1c
commit
a16c397de4
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user