mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
More fixes for today -> today()
This commit is contained in:
@ -9,7 +9,7 @@ def get_struct():
|
||||
# We only show events in the future, so only index events in the
|
||||
# future...
|
||||
|
||||
for n in Event.objects.filter(approved=True, enddate__gt=date.today):
|
||||
for n in Event.objects.filter(approved=True, enddate__gt=now):
|
||||
yearsold = (now - n.startdate).days / 365
|
||||
if yearsold > 4:
|
||||
yearsold = 4
|
||||
|
Reference in New Issue
Block a user