Fix db sync
This commit is contained in:
1 parent
4c7a885665
commit
1c2ee36edc
1 file changed
+1
@@ -48,6 +48,7 @@ async def pull():
|
|||||||
for table in db.__dict__.keys():
|
for table in db.__dict__.keys():
|
||||||
new_table = SqliteDict(DB + 'b', tablename=table)
|
new_table = SqliteDict(DB + 'b', tablename=table)
|
||||||
for key in new_table.keys():
|
for key in new_table.keys():
|
||||||
|
if key is not None:
|
||||||
getattr(db, table)[key] = new_table[key]
|
getattr(db, table)[key] = new_table[key]
|
||||||
new_table.close()
|
new_table.close()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user