From be2ababd99253660a95bba45ad48574aa00f21c4 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 1 Nov 2024 10:14:04 +0100 Subject: [PATCH] price tracker - fix for sites that supply an empty additional price --- changedetectionio/processors/restock_diff/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/processors/restock_diff/processor.py b/changedetectionio/processors/restock_diff/processor.py index f3ee2be9..ac351210 100644 --- a/changedetectionio/processors/restock_diff/processor.py +++ b/changedetectionio/processors/restock_diff/processor.py @@ -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