From 98867fc1f2269d5904f94b2b79409fe1505c8ec3 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 8 Jun 2021 15:15:14 +0200 Subject: [PATCH 7/9] to fixup: remove useless comment --- chrono/api/views.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrono/api/views.py b/chrono/api/views.py index 4fe6f15..404e596 100644 --- a/chrono/api/views.py +++ b/chrono/api/views.py @@ -282,11 +282,7 @@ def get_all_slots( if resources: q |= Q(resource__in=resources) for lock in ( - Lease.objects - # only lock related to on of the agenda or the resource - .filter(q) - .exclude(lock_code=lock_code) - .order_by('start_datetime', 'end_datetime') + Lease.objects.filter(q).exclude(lock_code=lock_code).order_by('start_datetime', 'end_datetime') ): if lock.desk: desk_locked_intervals[lock.desk_id].add(lock.start_datetime, lock.end_datetime) -- 2.32.0.rc0