Fixed huge bug: Calcs were wrong
This commit is contained in:
parent
33de47dde2
commit
5702811203
2
meuro.py
2
meuro.py
@ -94,7 +94,7 @@ def cliInterface():
|
|||||||
meurS = m.groups()[0]
|
meurS = m.groups()[0]
|
||||||
date = _extractDate(arg.replace(meurS, '-'))
|
date = _extractDate(arg.replace(meurS, '-'))
|
||||||
meur = float(meurS)
|
meur = float(meurS)
|
||||||
eur = euroToMeuro(meur, date)
|
eur = meuroToEuro(meur, date)
|
||||||
print('Exchange rate for '+date.strftime("%d.%m.%Y at %H:%M")+':')
|
print('Exchange rate for '+date.strftime("%d.%m.%Y at %H:%M")+':')
|
||||||
print(f'{meur:.2f}µ = {eur:.2f}€')
|
print(f'{meur:.2f}µ = {eur:.2f}€')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user