Fix db syncing when

This commit is contained in:
BarsTiger
2023-11-06 13:22:21 +02:00
parent e5a4fc5384
commit 85d1c61f9b

View File

@@ -49,7 +49,10 @@ async def pull():
new_table = SqliteDict(DB + 'b', tablename=table)
for key in new_table.keys():
if key is not None:
try:
getattr(db, table)[key] = new_table[key]
except Exception as e:
assert e
new_table.close()
await db.write()