agenda: lowering ponderation of departures to be sure it's always displayed

before arrivals

Closes #5465
This commit is contained in:
Serghei Mihai 2014-09-26 12:06:12 +02:00
parent 489f5bff1c
commit a943486280
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ def get_daily_appointments(date, worker, service, time_tables, events, holidays)
appointment_kind)
appointment.other_services_names = services
activity['departure'] = end_time
appointment.weight = -1
appointment.weight = -2
appointments.append(appointment)
return activity, sorted(appointments, key=lambda app: (app.begin_time, app.weight, app.event_id))