share should use custom encoder

This commit is contained in:
dgtlmoon
2024-12-29 19:24:03 +01:00
parent 05c46f3f25
commit 2d37f94c5f
2 changed files with 3 additions and 2 deletions

View File

@@ -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",

View File

@@ -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