summaryrefslogtreecommitdiff
path: root/jobs/telexoo.py
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/telexoo.py')
-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"))