forked from zaclys/searxng
fix little bug
This commit is contained in:
parent
5538c6771a
commit
ef2b1b7515
|
@ -159,7 +159,7 @@ def index():
|
||||||
|
|
||||||
# TODO, check if timezone is calculated right
|
# TODO, check if timezone is calculated right
|
||||||
if 'publishedDate' in result:
|
if 'publishedDate' in result:
|
||||||
if result['publishedDate'].date() == datetime.now().date():
|
if result['publishedDate'] >= datetime.now() - timedelta(days=1):
|
||||||
timedifference = datetime.now() - result['publishedDate']
|
timedifference = datetime.now() - result['publishedDate']
|
||||||
minutes = int((timedifference.seconds/60)%60)
|
minutes = int((timedifference.seconds/60)%60)
|
||||||
hours = int(timedifference.seconds/60/60)
|
hours = int(timedifference.seconds/60/60)
|
||||||
|
|
Loading…
Reference in New Issue