Skip to content

Commit

Permalink
Price tracker - fix for sites that supply an empty additional price (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon authored Nov 1, 2024
1 parent ad5d7ef commit f08a118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changedetectionio/processors/restock_diff/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _deduplicate_prices(data):

if isinstance(datum.value, list):
# Process each item in the list
normalized_value = set([float(re.sub(r'[^\d.]', '', str(item))) for item in datum.value])
normalized_value = set([float(re.sub(r'[^\d.]', '', str(item))) for item in datum.value if str(item).strip()])
unique_data.update(normalized_value)
else:
# Process single value
Expand Down

0 comments on commit f08a118

Please sign in to comment.