diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-08-10 12:15:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-10 12:15:05 +0200 |
| commit | 43df251f3d4f70b94fcbe37542e12af77bc10f8a (patch) | |
| tree | 00a66a0a88f3aa1e2adbb136c69984e635ada191 /searx/results.py | |
| parent | f3bfc19a557ef121d370033de6325df2ca835dcd (diff) | |
| parent | 0601f2bb481758ed8e0e68f96a976063d9b229db (diff) | |
Merge pull request #2131 from MarcAbonce/infobox_style
Make infobox shorter by default and add an expand toggle
Diffstat (limited to 'searx/results.py')
| -rw-r--r-- | searx/results.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py index 4fed58e55..8673ec339 100644 --- a/searx/results.py +++ b/searx/results.py @@ -60,6 +60,8 @@ def merge_two_infoboxes(infobox1, infobox2): if weight2 > weight1: infobox1['engine'] = infobox2['engine'] + infobox1['engines'] |= infobox2['engines'] + if 'urls' in infobox2: urls1 = infobox1.get('urls', None) if urls1 is None: @@ -189,6 +191,7 @@ class ResultContainer(object): def _merge_infobox(self, infobox): add_infobox = True infobox_id = infobox.get('id', None) + infobox['engines'] = set([infobox['engine']]) if infobox_id is not None: parsed_url_infobox_id = urlparse(infobox_id) for existingIndex in self.infoboxes: |