From f884dc9718f67a55462e69e6ad3e1f0001654d06 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Fri, 14 Jan 2022 16:13:39 -0400 Subject: [PATCH] Remove unused method from TimeSlotManager --- program/models.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/program/models.py b/program/models.py index bb9daf67..3e76fd95 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)) -- GitLab