Commit d907d5d9 authored by Andras Bartok's avatar Andras Bartok Committed by Romain Bignon

[boursorama/rate] get rate with the highest precision

parent 6c0b2ba6
......@@ -1104,7 +1104,7 @@ class CurrencyListPage(HTMLPage):
class CurrencyConvertPage(JsonPage):
def get_rate(self):
if not 'error' in self.doc:
return round(self.doc['rate'], 4)
return Decimal(str(self.doc['rate']))
class AccountsErrorPage(LoggedPage, HTMLPage):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment