From a943486280c3475f3c886a8f109c0aa1c62f1f96 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Fri, 26 Sep 2014 12:06:12 +0200 Subject: [PATCH] agenda: lowering ponderation of departures to be sure it's always displayed before arrivals Closes #5465 --- calebasse/agenda/appointments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calebasse/agenda/appointments.py b/calebasse/agenda/appointments.py index f80d5e1b..9dd5cffd 100644 --- a/calebasse/agenda/appointments.py +++ b/calebasse/agenda/appointments.py @@ -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))