Projet

Général

Profil

« Précédent | Suivant » 

Révision a9434862

Ajouté par Serghei Mihai il y a plus de 9 ans

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

Closes #5465

Voir les différences:

calebasse/agenda/appointments.py
226 226
                                    appointment_kind)
227 227
        appointment.other_services_names = services
228 228
        activity['departure'] = end_time
229
        appointment.weight = -1
229
        appointment.weight = -2
230 230
        appointments.append(appointment)
231 231

  
232 232
    return activity, sorted(appointments, key=lambda app: (app.begin_time, app.weight, app.event_id))

Formats disponibles : Unified diff