kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Restock/Price detection - Improving text information snapshot value
rodzic
fe704e05a3
commit
44e7e142f8
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue