From bddd60060d46a1e45155855f7827012e4d8163d3 Mon Sep 17 00:00:00 2001 From: Hans Kelson Date: Thu, 27 Apr 2023 13:12:40 -0400 Subject: [PATCH] These should be fine now... --- hat/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hat/views.py b/hat/views.py index 6ba7616..33cece6 100644 --- a/hat/views.py +++ b/hat/views.py @@ -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(), }) @@ -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(), })