fix: tag sync

This commit is contained in:
sinavir 2024-04-18 17:35:46 +02:00
parent 77147e5d01
commit 12b4168309

View file

@ -113,7 +113,7 @@ class Monitor(Item):
(i["tag_id"], i["value"]) for i in self.api.get_monitor(self.id)["tags"]
)
for t, v in self.tags:
if (t, v) not in current_tags:
if (t.id, v) not in current_tags:
logger.debug(f"Adding tag: '{t}, {v}'")
self.api.add_monitor_tag(tag_id=t.id, monitor_id=self.id, value=v)
self.saved = True