0007-to-fixup-remove-useless-comment.patch
chrono/api/views.py | ||
---|---|---|
282 | 282 |
if resources: |
283 | 283 |
q |= Q(resource__in=resources) |
284 | 284 |
for lock in ( |
285 |
Lease.objects |
|
286 |
# only lock related to on of the agenda or the resource |
|
287 |
.filter(q) |
|
288 |
.exclude(lock_code=lock_code) |
|
289 |
.order_by('start_datetime', 'end_datetime') |
|
285 |
Lease.objects.filter(q).exclude(lock_code=lock_code).order_by('start_datetime', 'end_datetime') |
|
290 | 286 |
): |
291 | 287 |
if lock.desk: |
292 | 288 |
desk_locked_intervals[lock.desk_id].add(lock.start_datetime, lock.end_datetime) |
293 |
- |