mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-10-08 13:02:18 +00:00
Restock/Price detection - Improving text information snapshot value
This commit is contained in:
1 parent
fe704e05a3
commit
44e7e142f8
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user