diff --git a/changedetectionio/blueprint/ui/views.py b/changedetectionio/blueprint/ui/views.py index 459ae53bd..d9ae5052c 100644 --- a/changedetectionio/blueprint/ui/views.py +++ b/changedetectionio/blueprint/ui/views.py @@ -144,7 +144,6 @@ def construct_blueprint(datastore: ChangeDetectionStore, update_q, queuedWatchMe # Use the current one if nothing was specified to_version = request.args.get('to_version', str(dates[-1])) - try: to_version_file_contents = watch.get_history_snapshot(timestamp=to_version) except Exception as e: diff --git a/changedetectionio/tests/test_jsonpath_jq_selector.py b/changedetectionio/tests/test_jsonpath_jq_selector.py index 327ed31ba..095fde32b 100644 --- a/changedetectionio/tests/test_jsonpath_jq_selector.py +++ b/changedetectionio/tests/test_jsonpath_jq_selector.py @@ -426,6 +426,13 @@ def check_json_ext_filter(json_filter, client, live_server): assert b'ForSale' not in res.data assert b'Sold' in res.data + + # And the difference should have both? + + res = client.get(url_for("ui.ui_views.diff_history_page", uuid="first")) + assert b'ForSale' in res.data + assert b'Sold' in res.data + res = client.get(url_for("ui.form_delete", uuid="all"), follow_redirects=True) assert b'Deleted' in res.data