mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-16 19:12:19 +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:
|
try:
|
||||||
c.executemany(
|
c.executemany(
|
||||||
'insert or replace into entity values (?,?,?)',
|
'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:
|
finally:
|
||||||
c.close()
|
c.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user