summaryrefslogtreecommitdiff
path: root/searx/answerers/statistics/answerer.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/answerers/statistics/answerer.py')
-rw-r--r--searx/answerers/statistics/answerer.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/answerers/statistics/answerer.py b/searx/answerers/statistics/answerer.py
index cfd1b3e23..abd4be7f5 100644
--- a/searx/answerers/statistics/answerer.py
+++ b/searx/answerers/statistics/answerer.py
@@ -27,15 +27,15 @@ def answer(query):
func = parts[0]
answer = None
- if func == b'min':
+ if func == 'min':
answer = min(args)
- elif func == b'max':
+ elif func == 'max':
answer = max(args)
- elif func == b'avg':
+ elif func == 'avg':
answer = sum(args) / len(args)
- elif func == b'sum':
+ elif func == 'sum':
answer = sum(args)
- elif func == b'prod':
+ elif func == 'prod':
answer = reduce(mul, args, 1)
if answer is None: