Skip to content

Commit 35db261

Browse files
author
Mike Taylor
committed
Fix #444 - Search was not scoped to repo. r=karlcow
This happened because params is a MultiDict, so update doesn't do what I thought it would do. MultiDict is allowed to have multiple keys that are the same.
1 parent b954289 commit 35db261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webcompat/api/endpoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def get_search_results(query_string=None):
163163
query_string = params.get('q')
164164
# restrict results to our repo.
165165
query_string += " repo:{0}".format(REPO_PATH)
166-
params.update({'q': query_string})
166+
params['q'] = query_string
167167

168168
if g.user:
169169
request_headers = get_request_headers(g.request_headers)

0 commit comments

Comments
 (0)