From a3d8917f34162ddf1d9854ac70799a23bcc6cef3 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 26 Jul 2018 18:03:03 +0200 Subject: correct telexoo data --- jobs/telexoo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jobs/telexoo.py') 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")) -- cgit v1.2.1