Skip to content

Commit f08a118

Browse files
authored
Price tracker - fix for sites that supply an empty additional price (#2758)
1 parent ad5d7ef commit f08a118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

changedetectionio/processors/restock_diff/processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _deduplicate_prices(data):
4040

4141
if isinstance(datum.value, list):
4242
# Process each item in the list
43-
normalized_value = set([float(re.sub(r'[^\d.]', '', str(item))) for item in datum.value])
43+
normalized_value = set([float(re.sub(r'[^\d.]', '', str(item))) for item in datum.value if str(item).strip()])
4444
unique_data.update(normalized_value)
4545
else:
4646
# Process single value

0 commit comments

Comments
 (0)