CrAgr: Fixed the cents calculation.
Signed-off-by: Xavier G <xavier@tuxfamily.org> Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
parent
f1aec0d629
commit
217a03a7de
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class Cragr(BaseBrowser):
|
|||
|
||||
# separate euros from cents
|
||||
amount_euros = int(amount)
|
||||
amount_cents = int((amount - amount_euros) * 100)
|
||||
amount_cents = int((amount * 100) - (amount_euros * 100))
|
||||
|
||||
# let's circumvent https://github.com/jjlee/mechanize/issues/closed#issue/17
|
||||
# using http://wwwsearch.sourceforge.net/mechanize/faq.html#usage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue