From 2bc988dffc95e33f24160c461485ba92d8a8afd2 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 17 Mar 2023 23:58:15 +0100 Subject: [PATCH] UI - Clone/copy watch - A paused watch should not be checked when copied/cloned #1471. --- changedetectionio/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 52d6501c..ace5e487 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -1168,7 +1168,8 @@ def changedetection_app(config=None, datastore_o=None): new_uuid = datastore.clone(uuid) if new_uuid: - update_q.put(queuedWatchMetaData.PrioritizedItem(priority=5, item={'uuid': new_uuid, 'skip_when_checksum_same': True})) + if not datastore.data['watching'].get(uuid).get('paused'): + update_q.put(queuedWatchMetaData.PrioritizedItem(priority=5, item={'uuid': new_uuid, 'skip_when_checksum_same': True})) flash('Cloned.') return redirect(url_for('index'))