diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-03-17 21:53:15 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-03-30 13:56:09 +0200 |
| commit | 9ffa9fb73061f41f91a490bcb2772d2eb56e0d78 (patch) | |
| tree | 5c0b080d5d91aef2606da1fa81961a40bbd361ff /searx/webapp.py | |
| parent | 5daa4f0460c9c03c4aea568ac6d2121b7db84cf6 (diff) | |
[feat] engines: add reuters news engine
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 8 |
1 files changed, 0 insertions, 8 deletions
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: |