|
@@ -55,7 +55,7 @@ shorcut_dict = {
|
55
|
55
|
def request(query, params):
|
56
|
56
|
# replace shortcuts with API advanced search keywords
|
57
|
57
|
for key in shorcut_dict.keys():
|
58
|
|
- query = re.sub(str(key), str(shorcut_dict[key]), query)
|
|
58
|
+ query = re.sub(key, shorcut_dict[key], str(query))
|
59
|
59
|
|
60
|
60
|
# basic search
|
61
|
61
|
offset = (params['pageno'] - 1) * number_of_results
|