From 7d94535dbf8ef4a7ed8624e8f69dc9cbcd2ca30b Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 29 Oct 2024 08:24:15 +0100 Subject: [PATCH] Do not recheck 'paused' watches on edit/save (Re #2747 #2750) --- 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':