diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 7d0c9d5c..ae611caa 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -43,6 +43,7 @@ from loguru import logger from changedetectionio import html_tools, __version__ from changedetectionio import queuedWatchMetaData from changedetectionio.api import api_v1 +from .store import CustomEncoder from .time_handler import is_within_schedule datastore = None @@ -1613,7 +1614,7 @@ def changedetection_app(config=None, datastore_o=None): watch['ignore_text'] += datastore.data['settings']['application']['global_ignore_text'] watch['subtractive_selectors'] += datastore.data['settings']['application']['global_subtractive_selectors'] - watch_json = json.dumps(watch) + watch_json = json.dumps(watch, cls=CustomEncoder) try: r = requests.request(method="POST", diff --git a/changedetectionio/store.py b/changedetectionio/store.py index 89a08648..38571f65 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -6,7 +6,7 @@ from flask import ( from .html_tools import TRANSLATE_WHITESPACE_TABLE from .model import App, Watch, WatchBase -from copy import deepcopy, copy +from copy import deepcopy from os import path, unlink from threading import Lock import json