From 046bbbffb655d5aedad4f7d026e9fdc7726812ce Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 29 Oct 2024 07:52:04 +0100 Subject: [PATCH] Re #2747 - Do not recheck 'paused' watches on edit/save --- changedetectionio/flask_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index c50d0bc3..66d5b00d 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -803,8 +803,9 @@ def changedetection_app(config=None, datastore_o=None): # But in the case something is added we should save straight away datastore.needs_write_urgent = True - # Queue the watch for immediate recheck, with a higher priority - update_q.put(queuedWatchMetaData.PrioritizedItem(priority=1, item={'uuid': uuid})) + if not datastore.data['watching'][uuid].get('paused'): + # Queue the watch for immediate recheck, with a higher priority + update_q.put(queuedWatchMetaData.PrioritizedItem(priority=1, item={'uuid': uuid})) # Diff page [edit] link should go back to diff page if request.args.get("next") and request.args.get("next") == 'diff':