sync_model_data

This commit is contained in:
Raimon Esteve 2022-03-02 14:19:27 +01:00
parent 6e69f7b0b4
commit 973fe86e0e

View file

@ -39,9 +39,7 @@ with Transaction().start(dbname, 0, context=context):
domain += [('id', 'not in', to_omit)]
datas = Data.search(domain)
print('LEN: ', len(datas))
for data in datas:
print(data)
Data.sync([data])
Data.sync(datas)
Transaction().commit()