From 7b0ddc23d3f30ee8726fac6ebb256c39a6a6f6b3 Mon Sep 17 00:00:00 2001 From: bwees Date: Tue, 12 Jul 2022 20:40:54 -0400 Subject: [PATCH] workaround for diff filter checkboxes getting changed on creation of form object --- changedetectionio/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 2b10ace3..c440a4ce 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -619,6 +619,10 @@ def changedetection_app(config=None, datastore_o=None): datastore.data['watching'][uuid].update(form.data) datastore.data['watching'][uuid].update(extra_update_obj) + # Fix the diff filters being changed in the creation of form object + datastore.data['watching'][uuid]['trigger_on_add'] = default['trigger_on_add'] + datastore.data['watching'][uuid]['trigger_on_del'] = default['trigger_on_del'] + flash("Updated watch.") # Re #286 - We wait for syncing new data to disk in another thread every 60 seconds