Project

General

Profile

« Previous | Next » 

Revision ba9131fa

Added by Benjamin Dauvergne over 11 years ago

agenda: sort appointments only one time

View differences:

calebasse/agenda/appointments.py
116 116
        appointment.weight = 1
117 117
        appointments.append(appointment)
118 118

  
119
    s = sorted(appointments, key=lambda app: app.weight)
120
    return sorted(s, key=lambda app: app.begin_time)
119
    return sorted(appointments, key=lambda app: (app.begin_time, app.weight))
121 120

  

Also available in: Unified diff