Skip to content

Commit

Permalink
price tracker - fix for sites that supply an empty additional price
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Nov 1, 2024
1 parent 7029d10 commit be2abab
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 be2abab

Please sign in to comment.