Fix VB Price with thousand separator

This commit is contained in:
Tobias Faber
2024-03-29 13:32:05 +01:00
committed by Sebastian Thomschke
parent 5c8e00df52
commit db465af9b7

View File

@@ -314,7 +314,7 @@ class AdExtractor(WebScrapingMixin):
case 'VB':
price_type = 'NEGOTIABLE'
if not price_str == "VB": # can be either 'X € VB', or just 'VB'
price = int(price_str.split()[0])
price = int(price_str.replace('.', '').split()[0])
case 'verschenken':
price_type = 'GIVE_AWAY'
case _: