From 74ca542a0282e269c991cc75511ccc76a7c8901c Mon Sep 17 00:00:00 2001 From: rhapsodhy Date: Sat, 11 Jan 2014 03:31:54 +0000 Subject: [enh] set up special css classes for highlighting results + highlight definitions with dark grey border --- searx/engines/duckduckgo_definitions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'searx/engines/duckduckgo_definitions.py') 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) -- cgit v1.2.3