magfest-archive / guests

Magfest band management plugin for ubersystem
GNU Affero General Public License v3.0
1 stars 1 forks source link

Sort checklist items by deadline, soonest first #102

Closed RobRuana closed 7 years ago

RobRuana commented 7 years ago

The sorted_checklist here is never actually sorted. We need to do something like this:

return {
    'message': message,
    'guest': guest,
    'sorted_checklist': sorted(sorted_checklist, key=lambda x: guest.deadline_from_model(x['name']))
}

Checklist items out of order:

screen shot 2017-09-21 at 11 08 07 am
kitsuta commented 7 years ago

Oh, whoops.. I had that working at one point! Good catch! 😅