Skip to content

Commit

Permalink
Update EnParaleloVzla provider to parse price as float
Browse files Browse the repository at this point in the history
  • Loading branch information
fcoagz committed Jul 19, 2024
1 parent f6302a8 commit 4cb6949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyDolarVenezuela/providers/enparalelovzla.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _load(cls, **kwargs):
if text_message is not None:
result = re.search(pattern, text_message.text.strip())
if result:
price = result.group(3).replace('Bs. ', '').replace(',', '.')
price = float(result.group(3).replace('Bs. ', '').replace(',', '.'))
percent = result.group(5).replace(',', '.').replace('%', '')
change = result.group(6).replace(',', '.')
symbol = "▼" if result.group(4) == '🔻' else "▲" if result.group(4) == '🔺' else ""
Expand Down

0 comments on commit 4cb6949

Please sign in to comment.