Révision be3ba5b3
Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans
calebasse/agenda/appointments.py | ||
---|---|---|
141 | 141 |
appointments = [] |
142 | 142 |
activity = {'absences': []} |
143 | 143 |
|
144 |
timetables_set = IntervalSet((t.to_interval(date) for t in time_tables)) |
|
144 |
service_time_tables = time_tables.filter(services=service) |
|
145 |
timetables_set = IntervalSet((t.to_interval(date) for t in service_time_tables)) |
|
145 | 146 |
holidays_set = IntervalSet((h.to_interval(date) for h in holidays)) |
146 | 147 |
busy_occurrences_set = IntervalSet((o.to_interval() for o in events if not o.is_event_absence() and service in o.services.all())) |
147 | 148 |
for free_time in timetables_set - (busy_occurrences_set+holidays_set): |
Formats disponibles : Unified diff
agenda: current service free periods only displaying fix