summaryrefslogtreecommitdiff
path: root/helsinki/program/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'helsinki/program/models.py')
-rw-r--r--helsinki/program/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/helsinki/program/models.py b/helsinki/program/models.py
index d792efb..5f0f835 100644
--- a/helsinki/program/models.py
+++ b/helsinki/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()