fix battery migration

This commit is contained in:
Cayo Puigdefabregas 2022-08-03 17:29:13 +02:00
parent dcc445a42e
commit 1b5debc77f
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ def clone_device(device):
new_c = clone_device(c) new_c = clone_device(c)
new_c.parent = new_device new_c.parent = new_device
placeholder = Placeholder(device=new_device, binding=device, is_abstract=True, owner_id=device.owner_id) placeholder = Placeholder(
device=new_device, binding=device, is_abstract=True, owner_id=device.owner_id
)
db.session.add(placeholder) db.session.add(placeholder)
tags = [x for x in device.tags] tags = [x for x in device.tags]