[Biplan] bug in float parsing
This commit is contained in:
parent
a93a9025d6
commit
0a126a8a12
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class EventPage(BasePage):
|
|||
parsed_price = re.findall(r"\d*\,\d+|\d+", " ".join(parse_b(splitted_b[-1])))
|
||||
|
||||
if parsed_price and len(parsed_price) > 0:
|
||||
event.price = float(parsed_price[0])
|
||||
event.price = float(parsed_price[0].replace(',', '.'))
|
||||
else:
|
||||
event.price = float(0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue