diff options
author | rhapsodhy <me@rhapsodhy.hu> | 2014-01-11 03:31:54 +0000 |
---|---|---|
committer | rhapsodhy <me@rhapsodhy.hu> | 2014-01-11 03:31:54 +0000 |
commit | 74ca542a0282e269c991cc75511ccc76a7c8901c (patch) | |
tree | fabe29de909c74b8f90a24339b5be01f30b48f5e /searx/engines/duckduckgo_definitions.py | |
parent | 04c408389d3d1a97a6a4b59502490372d67357cf (diff) | |
download | searxng-74ca542a0282e269c991cc75511ccc76a7c8901c.tar.gz searxng-74ca542a0282e269c991cc75511ccc76a7c8901c.zip |
[enh] set up special css classes for highlighting results + highlight definitions with dark grey border
Diffstat (limited to 'searx/engines/duckduckgo_definitions.py')
-rw-r--r-- | searx/engines/duckduckgo_definitions.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/searx/engines/duckduckgo_definitions.py b/searx/engines/duckduckgo_definitions.py index 2d97f8154..7b3950b85 100644 --- a/searx/engines/duckduckgo_definitions.py +++ b/searx/engines/duckduckgo_definitions.py @@ -13,9 +13,10 @@ def response(resp): results = [] if 'Definition' in search_res: if search_res.get('AbstractURL'): - res = {'title' : search_res.get('Heading', '') - ,'content' : search_res.get('Definition', '') - ,'url' : search_res.get('AbstractURL', '') + res = {'title' : search_res.get('Heading', '') + ,'content' : search_res.get('Definition', '') + ,'url' : search_res.get('AbstractURL', '') + ,'class' : 'definition_result' } results.append(res) |