From 2f9e03b9000f2f687e92d3f1625dd69d58e9a02e Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 20 Nov 2022 09:46:33 +0100 Subject: [PATCH] fix logic --- changedetectionio/update_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index 133331ea..fb4a21ec 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -74,7 +74,7 @@ class update_worker(threading.Thread): n_object.update({ 'watch_url': watch['url'], 'uuid': watch_uuid, - 'screenshot': watch.get_screenshot(), + 'screenshot': watch.get_screenshot() if watch.get('notification_screenshot') else None, 'current_snapshot': snapshot_contents.decode('utf-8'), 'diff': diff.render_diff(watch_history[dates[-2]], watch_history[dates[-1]], line_feed_sep=line_feed_sep), 'diff_full': diff.render_diff(watch_history[dates[-2]], watch_history[dates[-1]], True, line_feed_sep=line_feed_sep)