diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2018-07-26 18:03:03 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2018-07-26 18:03:03 +0200 |
commit | a3d8917f34162ddf1d9854ac70799a23bcc6cef3 (patch) | |
tree | 082f49a2cd97a4384e4adda334cde20a446bbdc9 /jobs/telexoo.py | |
parent | 856937d91e600bafc5b831b79d6aca5bd1bf3519 (diff) | |
download | datasources-a3d8917f34162ddf1d9854ac70799a23bcc6cef3.tar.gz datasources-a3d8917f34162ddf1d9854ac70799a23bcc6cef3.zip |
correct telexoo data
Diffstat (limited to 'jobs/telexoo.py')
-rwxr-xr-x | jobs/telexoo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/telexoo.py b/jobs/telexoo.py index 110ba72..b2baca9 100755 --- a/jobs/telexoo.py +++ b/jobs/telexoo.py @@ -45,11 +45,11 @@ def execute(curr_from, curr_to): if not match: raise Exception("Invalid response in 'result' field") result = Decimal(match.groups()[0]) / MULT - return Quote(curr_to, curr_to, float(result)) + return Quote(curr_from, curr_to, float(result)) if __name__ == "__main__": from pprint import pprint + pprint(execute("EUR", "CHF")) pprint(execute("CHF", "EUR")) - pprint(execute("CHF", "GBP")) |