WIP, separate out the Flask from everything else, get pytest working

This commit is contained in:
Leigh Morresi
2021-02-12 19:24:30 +01:00
parent 426b09b7e1
commit 9f964b6d3f
8 changed files with 580 additions and 521 deletions

View File

@@ -13,8 +13,9 @@ from copy import deepcopy
class ChangeDetectionStore:
lock = Lock()
def __init__(self):
def __init__(self, datastore_path="/datastore"):
self.needs_write = False
self.datastore_path = datastore_path
self.__data = {
'note': "Hello! If you change this file manually, please be sure to restart your changedetection.io instance!",