diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-03 14:37:23 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-03 14:37:23 (GMT) |
commit | 649ee0193efeb9af3250745d0c836c5a0e8c4d93 (patch) | |
tree | 63e6cbd5a9592fc727e7f416bf8b70bbed056032 /program/models.py | |
parent | da5e6afcd45443790b73541f6721d73b6e29f059 (diff) |
fixed query in time slot manager.
Diffstat (limited to 'program/models.py')
-rw-r--r-- | program/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |