forked from Ponysearch/Ponysearch
[enh] merging only results with same rendering templates
This commit is contained in:
parent
708fa6f88a
commit
5e358ea9a9
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ def search(query, request, selected_categories):
|
|||
for new_res in results:
|
||||
if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\
|
||||
res['parsed_url'].path == new_res['parsed_url'].path and\
|
||||
res['parsed_url'].query == new_res['parsed_url'].query:
|
||||
res['parsed_url'].query == new_res['parsed_url'].query and\
|
||||
res.get('template') == new_res.get('template'):
|
||||
duplicated = new_res
|
||||
break
|
||||
if duplicated:
|
||||
|
|
Loading…
Reference in a new issue