Always override tag version (load from disk in future, so we can add it at build time)

pull/15/head
Leigh Morresi 4 years ago
parent cd6465f844
commit e3e36b3cef

@ -25,7 +25,6 @@ class ChangeDetectionStore:
self.__data = { self.__data = {
'note': "Hello! If you change this file manually, please be sure to restart your changedetection.io instance!", 'note': "Hello! If you change this file manually, please be sure to restart your changedetection.io instance!",
'watching': {}, 'watching': {},
'tag': '0.27',
'settings': { 'settings': {
'headers': { 'headers': {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36', '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']: if 'requests' in from_disk['settings']:
self.__data['settings']['requests'].update(from_disk['settings']['requests']) 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. # 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! # @todo pretty sure theres a python we todo this with an abstracted(?) object!

Loading…
Cancel
Save