Add homepage checkin for events happening now

This commit is contained in:
2023-05-15 01:26:54 +01:00
parent 417ec8ff3d
commit 904ef1f180
2 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ class Index(generic.TemplateView): # Displays the current rig count along with
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['rig_count'] = models.Event.objects.rig_count()
context['now'] = models.Event.objects.events_in_bounds(timezone.now(), timezone.now())
return context