Restock/Price detection - Improving text information snapshot value

pull/2511/head
dgtlmoon 4 months ago
parent fe704e05a3
commit 44e7e142f8

@ -200,7 +200,7 @@ class perform_site_check(difference_detection_processor):
# What we store in the snapshot # What we store in the snapshot
price = update_obj.get('restock').get('price') if update_obj.get('restock').get('price') else "" 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 # Main detection method
fetched_md5 = hashlib.md5(snapshot_content.encode('utf-8')).hexdigest() fetched_md5 = hashlib.md5(snapshot_content.encode('utf-8')).hexdigest()

Loading…
Cancel
Save