fix tag automatic only for placeholder

This commit is contained in:
Cayo Puigdefabregas 2022-07-15 13:11:04 +02:00
parent 2c6f831068
commit 1fa6e7512c
1 changed files with 1 additions and 1 deletions

View File

@ -1481,7 +1481,7 @@ def create_code_tag(mapper, connection, device):
"""
from ereuse_devicehub.resources.tag.model import Tag
if isinstance(device, Computer):
if isinstance(device, Computer) and not device.placeholder:
tag = Tag(device_id=device.id, id=device.devicehub_id)
db.session.add(tag)