From 9ffa9fb73061f41f91a490bcb2772d2eb56e0d78 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 17 Mar 2025 21:53:15 +0100 Subject: [feat] engines: add reuters news engine --- searx/webapp.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index 8d9fd9393..b721c7132 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -694,14 +694,6 @@ def search(): if 'title' in result and result['title']: result['title'] = highlight_content(escape(result['title'] or ''), search_query.query) - if getattr(result, 'publishedDate', None): # do not try to get a date from an empty string or a None type - try: # test if publishedDate >= 1900 (datetime module bug) - result['pubdate'] = result['publishedDate'].strftime('%Y-%m-%d %H:%M:%S%z') - except ValueError: - result['publishedDate'] = None - else: - result['publishedDate'] = webutils.searxng_l10n_timespan(result['publishedDate']) - # set result['open_group'] = True when the template changes from the previous result # set result['close_group'] = True when the template changes on the next result if current_template != result.template: -- cgit v1.2.3