Fix saving entity types in sqlite

ty is already a subclass of int.
This commit is contained in:
Lonami Exo 2022-01-28 20:20:53 +01:00
parent 05457eaf1c
commit a16c397de4

View File

@ -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()