From 12b41683099db0699b358bb8be51202e922d2660 Mon Sep 17 00:00:00 2001 From: sinavir Date: Thu, 18 Apr 2024 17:35:46 +0200 Subject: [PATCH] fix: tag sync --- stateless_uptime_kuma/uptime_kuma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stateless_uptime_kuma/uptime_kuma.py b/stateless_uptime_kuma/uptime_kuma.py index 0fefc4b..bd3f181 100644 --- a/stateless_uptime_kuma/uptime_kuma.py +++ b/stateless_uptime_kuma/uptime_kuma.py @@ -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