diff --git a/program/models.py b/program/models.py index bb9daf67f4ad3c4b682aee7865a1c4eea06b6dcd..3e76fd9533766b72493b8ebfaac1f6f764fc8491 100644 --- a/program/models.py +++ b/program/models.py @@ -1011,14 +1011,6 @@ class TimeSlotManager(models.Manager): else: return new_schedule.timeslots.all()[0] - @staticmethod - def get_day_timeslots(day): - today = datetime.combine(day, time(6, 0)) - tomorrow = today + timedelta(days=1) - - return TimeSlot.objects.filter(Q(start__lte=today, end__gte=today) | - Q(start__gt=today, start__lt=tomorrow)).exclude(end=today) - @staticmethod def get_24h_timeslots(start): end = timezone.make_aware(start + timedelta(hours=24))