summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-03 14:37:23 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-03 14:37:23 (GMT)
commit649ee0193efeb9af3250745d0c836c5a0e8c4d93 (patch)
tree63e6cbd5a9592fc727e7f416bf8b70bbed056032 /program
parentda5e6afcd45443790b73541f6721d73b6e29f059 (diff)
fixed query in time slot manager.
Diffstat (limited to 'program')
-rw-r--r--program/models.py2
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()