mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +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':
|
case 'VB':
|
||||||
price_type = 'NEGOTIABLE'
|
price_type = 'NEGOTIABLE'
|
||||||
if not price_str == "VB": # can be either 'X € VB', or just 'VB'
|
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':
|
case 'verschenken':
|
||||||
price_type = 'GIVE_AWAY'
|
price_type = 'GIVE_AWAY'
|
||||||
case _:
|
case _:
|
||||||
|
|||||||
Reference in New Issue
Block a user