mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
Fix VB Price with thousand separator
This commit is contained in:
committed by
Sebastian Thomschke
parent
5c8e00df52
commit
db465af9b7
@@ -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 _:
|
||||
|
||||
Reference in New Issue
Block a user