From 6701d9f5e320a0f803db75ecd93d7695324d0674 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 19 Nov 2013 18:09:14 +0100 Subject: wacalc: Replace Result with DecimalApproximation when available. --- modules/wacalc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wacalc.py b/modules/wacalc.py index 4d40ade..27d6962 100644 --- a/modules/wacalc.py +++ b/modules/wacalc.py @@ -62,7 +62,7 @@ class Module(object): return text.encode('utf-8') for pod in xml.findall('pod'): pod_id = pod.attrib['id'] - if pod_id == 'Result': + if pod_id in ('Result', 'DecimalApproximation'): right = pod_plaintext(pod) elif pod_id == 'Input': left = pod_plaintext(pod) -- cgit v1.2.3