diff --git a/changedetectionio/processors/restock_diff.py b/changedetectionio/processors/restock_diff.py index c55b3d510..5aa5f2439 100644 --- a/changedetectionio/processors/restock_diff.py +++ b/changedetectionio/processors/restock_diff.py @@ -183,9 +183,6 @@ class perform_site_check(difference_detection_processor): if price < max_limit and price > min_limit: changed_detected = False - - - # Always record the new checksum update_obj["previous_md5"] = fetched_md5 return changed_detected, update_obj, self.fetcher.instock_data.encode('utf-8').strip() diff --git a/changedetectionio/tests/test_restock_itemprop.py b/changedetectionio/tests/test_restock_itemprop.py index 163df9025..596e31b30 100644 --- a/changedetectionio/tests/test_restock_itemprop.py +++ b/changedetectionio/tests/test_restock_itemprop.py @@ -173,4 +173,14 @@ def test_itemprop_price_minmax_limit(client, live_server): wait_for_all_checks(client) res = client.get(url_for("index")) assert b'890.45' in res.data - assert b'unviewed' in res.data \ No newline at end of file + assert b'unviewed' in res.data + + client.get(url_for("mark_all_viewed")) + + # price changed to something MORE than max (1100.10), SHOULD be a change + set_original_response(props_markup=instock_props[0], price='1890.45') + client.get(url_for("form_watch_checknow"), follow_redirects=True) + wait_for_all_checks(client) + res = client.get(url_for("index")) + assert b'1890.45' in res.data + assert b'unviewed' in res.data