Révision f248574d
Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans
calebasse/agenda/appointments.py | ||
---|---|---|
207 | 207 |
appointment.other_services_names = services |
208 | 208 |
appointment.init_start_stop(u"Arrivée", start_time) |
209 | 209 |
activity['arrival'] = start_time |
210 |
appointment.weight = 1 |
|
210 |
appointment.weight = -1
|
|
211 | 211 |
appointments.append(appointment) |
212 | 212 |
appointment = Appointment() |
213 | 213 |
appointment.init_start_stop(u"Départ", end_time) |
214 | 214 |
appointment.other_services_names = services |
215 | 215 |
activity['departure'] = end_time |
216 |
appointment.weight = -1
|
|
216 |
appointment.weight = 1 |
|
217 | 217 |
appointments.append(appointment) |
218 | 218 |
|
219 | 219 |
return activity, sorted(appointments, key=lambda app: (app.begin_time, app.weight, app.event_id)) |
Formats disponibles : Unified diff
agenda: arrivals dans departures displayed before appointments
Closes #5235