From 649ee0193efeb9af3250745d0c836c5a0e8c4d93 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 3 Apr 2011 16:37:23 +0200 Subject: fixed query in time slot manager. diff --git a/program/models.py b/program/models.py index f6839e2..70347b0 100644 --- a/program/models.py +++ b/program/models.py @@ -221,7 +221,7 @@ class ProgramSlot(models.Model): class TimeSlotManager(models.Manager): def get_or_create_current(self): try: - return TimeSlot.objects.get(start__lte=datetime.now(), end__gte=datetime.now()) + return TimeSlot.objects.get(start__lte=datetime.now(), end__gt=datetime.now()) except ObjectDoesNotExist: once = RRule.objects.get(pk=1) today = date.today().weekday() -- cgit v0.10.2