summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2013-11-19 18:09:14 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2013-11-19 18:09:14 +0100
commit6701d9f5e320a0f803db75ecd93d7695324d0674 (patch)
treed72f9d6a5ee6cd32b05723b273173fda51385b82
parent65e0c9fe6be8014226f85cf216b8fc8a946e619b (diff)
wacalc: Replace Result with DecimalApproximation when available.
-rw-r--r--modules/wacalc.py2
1 files changed, 1 insertions, 1 deletions
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)