Verified Commit 5ef5112a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix filter of events cards

parent 3ee093de
...@@ -12,7 +12,7 @@ def render_event_cards(context, events=None): ...@@ -12,7 +12,7 @@ def render_event_cards(context, events=None):
if events is None: if events is None:
events = Event.objects.filter( events = Event.objects.filter(
published=True, published=True,
start__lte=timezone.now() + timezone.timedelta(hours=24), start__gte=timezone.now() - timezone.timedelta(hours=24),
end__gte=timezone.now() end__gte=timezone.now()
).order_by('start')[:6] ).order_by('start')[:6]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment