From 01f910f840616124c93f05450cb266be1941e844 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 4 Jul 2024 15:23:06 +0200 Subject: [PATCH] Fixing 'tags'' field from old installs (0.43.0+) could have wrong data-type causing crash --- changedetectionio/store.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changedetectionio/store.py b/changedetectionio/store.py index d4a6cb0f..284f3767 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -843,3 +843,8 @@ class ChangeDetectionStore: # Something custom here self.__data["watching"][uuid]['time_between_check_use_default'] = False + # Correctly set datatype for older installs where 'tag' was string and update_12 did not catch it + def update_16(self): + for uuid, watch in self.data['watching'].items(): + if isinstance(watch.get('tags'), str): + self.data['watching'][uuid]['tags'] = []