Skip to content

Commit

Permalink
These should be fine now...
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepman4267 committed Apr 27, 2023
1 parent dc663f6 commit bddd600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_remaining_items():
def index(request):
return render(request, 'hat/hat.html', {
'hat_class': 'index', # todo: make timedelta in line 12 configurable
# 'past_items': Item.objects.filter(pulled=True, pulled_at__range=(timezone.now() - timezone.timedelta(hours=6), timezone.now())),
'past_items': Item.objects.filter(pulled=True, pulled_at__range=(timezone.now() - timezone.timedelta(hours=6), timezone.now())),
'remaining_items': get_remaining_items(),
})

Expand All @@ -33,7 +33,7 @@ def pull_item(request):
return render(request, 'hat/hat.html', {
'item': item,
'hat_class': hat_class,
# 'past_items': Item.objects.filter(pulled=True, pulled_at__range=(timezone.now() - timezone.timedelta(hours=6), timezone.now())),
'past_items': Item.objects.filter(pulled=True, pulled_at__range=(timezone.now() - timezone.timedelta(hours=6), timezone.now())),
'remaining_items': get_remaining_items(),
})

Expand Down

0 comments on commit bddd600

Please sign in to comment.