From e3e36b3cef612441d05be09ba1b830aab8475c59 Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Sat, 27 Feb 2021 23:20:40 +0100 Subject: [PATCH] Always override tag version (load from disk in future, so we can add it at build time) --- backend/store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/store.py b/backend/store.py index d463fa6d..71a1867e 100644 --- a/backend/store.py +++ b/backend/store.py @@ -25,7 +25,6 @@ class ChangeDetectionStore: self.__data = { 'note': "Hello! If you change this file manually, please be sure to restart your changedetection.io instance!", 'watching': {}, - 'tag': '0.27', 'settings': { 'headers': { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36', @@ -80,6 +79,8 @@ class ChangeDetectionStore: if 'requests' in from_disk['settings']: self.__data['settings']['requests'].update(from_disk['settings']['requests']) + self.__data['tag'] = "0.27" + # Reinitialise each `watching` with our generic_definition in the case that we add a new var in the future. # @todo pretty sure theres a python we todo this with an abstracted(?) object!