Fixed huge bug: Calcs were wrong

This commit is contained in:
Dominik Moritz Roth 2021-10-30 13:12:36 +02:00
parent 33de47dde2
commit 5702811203

View File

@ -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: