SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
fix little bug
Thomas Pointhuberef2b1b7515fb
diff --git a/searx/webapp.py b/searx/webapp.pyindex 5cc059044..54061a462 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -159,8 +159,8 @@ def index():# TODO, check if timezone is calculated rightif 'publishedDate' in result:- if result['publishedDate'].date() == datetime.now().date():- timedifference = datetime.now()-result['publishedDate']+ if result['publishedDate'] >= datetime.now() - timedelta(days=1):+ timedifference = datetime.now() - result['publishedDate']minutes = int((timedifference.seconds/60)%60)hours = int(timedifference.seconds/60/60)if hours == 0: