Skip to content

Commit

Permalink
Exclude non-rigs from the 'now' checkin list
Browse files Browse the repository at this point in the history
  • Loading branch information
FreneticScribbler committed Jun 29, 2023
1 parent f35ce88 commit 387fa56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyRIGS/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +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()).exclude(dry_hire=True).exclude(status=models.Event.CANCELLED)
context['now'] = models.Event.objects.events_in_bounds(timezone.now(), timezone.now()).exclude(status=models.Event.CANCELLED).filter(is_rig=True, dry_hire=False)
return context


Expand Down

0 comments on commit 387fa56

Please sign in to comment.