Skip to content

Commit 7d94535

Browse files
authored
Do not recheck 'paused' watches on edit/save (Re #2747 #2750)
1 parent 563c196 commit 7d94535

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

changedetectionio/flask_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,9 @@ def edit_page(uuid):
803803
# But in the case something is added we should save straight away
804804
datastore.needs_write_urgent = True
805805

806-
# Queue the watch for immediate recheck, with a higher priority
807-
update_q.put(queuedWatchMetaData.PrioritizedItem(priority=1, item={'uuid': uuid}))
806+
if not datastore.data['watching'][uuid].get('paused'):
807+
# Queue the watch for immediate recheck, with a higher priority
808+
update_q.put(queuedWatchMetaData.PrioritizedItem(priority=1, item={'uuid': uuid}))
808809

809810
# Diff page [edit] link should go back to diff page
810811
if request.args.get("next") and request.args.get("next") == 'diff':

0 commit comments

Comments
 (0)