From 44e7e142f88843e11316d165359c0bb58537ddbd Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 18 Jul 2024 13:28:54 +0200 Subject: [PATCH] Restock/Price detection - Improving text information snapshot value --- changedetectionio/processors/restock_diff/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/processors/restock_diff/processor.py b/changedetectionio/processors/restock_diff/processor.py index 790241e5..b2184e35 100644 --- a/changedetectionio/processors/restock_diff/processor.py +++ b/changedetectionio/processors/restock_diff/processor.py @@ -200,7 +200,7 @@ class perform_site_check(difference_detection_processor): # What we store in the snapshot price = update_obj.get('restock').get('price') if update_obj.get('restock').get('price') else "" - snapshot_content = f"{update_obj.get('restock').get('in_stock')} - {price}" + snapshot_content = f"In Stock: {update_obj.get('restock').get('in_stock')} - Price: {price}" # Main detection method fetched_md5 = hashlib.md5(snapshot_content.encode('utf-8')).hexdigest()