commit: f82ead3e303d75ba63a370dc038311e172e1330d
parent: aef2b07969bddb1697c340604d1e22cea8a696cc
Author: Adam Tauber <asciimoo@gmail.com>
Date: Thu, 14 Jun 2018 11:50:03 +0200
[fix] add py3 compatibility to base engine - closes #1319
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/engines/base.py b/searx/engines/base.py
@@ -55,7 +55,7 @@ shorcut_dict = {
def request(query, params):
# replace shortcuts with API advanced search keywords
for key in shorcut_dict.keys():
- query = re.sub(str(key), str(shorcut_dict[key]), query)
+ query = re.sub(key, shorcut_dict[key], str(query))
# basic search
offset = (params['pageno'] - 1) * number_of_results