Skip to content

Commit

Permalink
Do not recheck 'paused' watches on edit/save (Re #2747 #2750)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon authored Oct 29, 2024
1 parent 563c196 commit 7d94535
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions changedetectionio/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,9 @@ def edit_page(uuid):
# 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':
Expand Down

0 comments on commit 7d94535

Please sign in to comment.