diff options
author | Alexandre Flament <alex@al-f.net> | 2016-12-30 17:16:53 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2016-12-30 17:18:02 +0100 |
commit | 3a8ab5880a7e48470f56ddf18f80ff626c4f31c7 (patch) | |
tree | c4006a03aaa8b763153c4b87397b276a98e704ad /searx/results.py | |
parent | eaa0fb8102825fa4ccdb348429fdbf39837921be (diff) | |
download | searxng-3a8ab5880a7e48470f56ddf18f80ff626c4f31c7.tar.gz searxng-3a8ab5880a7e48470f56ddf18f80ff626c4f31c7.zip |
[mod] result_container.extend sets result['engine'] = engine_name for each result
Diffstat (limited to 'searx/results.py')
-rw-r--r-- | searx/results.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py index 73a96c081..6062f8013 100644 --- a/searx/results.py +++ b/searx/results.py @@ -133,6 +133,7 @@ class ResultContainer(object): def extend(self, engine_name, results): for result in list(results): + result['engine'] = engine_name if 'suggestion' in result: self.suggestions.add(result['suggestion']) results.remove(result) |