summaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2018-07-26 18:03:03 +0200
committerYves Fischer <yvesf-git@xapek.org>2018-07-26 18:03:03 +0200
commita3d8917f34162ddf1d9854ac70799a23bcc6cef3 (patch)
tree082f49a2cd97a4384e4adda334cde20a446bbdc9 /jobs
parent856937d91e600bafc5b831b79d6aca5bd1bf3519 (diff)
downloaddatasources-a3d8917f34162ddf1d9854ac70799a23bcc6cef3.tar.gz
datasources-a3d8917f34162ddf1d9854ac70799a23bcc6cef3.zip
correct telexoo data
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/telexoo.py4
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"))