Changeset 16505 for main


Ignore:
Timestamp:
15 Jun 2021, 09:44:26 (3 years ago)
Author:
Henrik Bettermann
Message:

Sort course tickets on student lastname.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r16465 r16505  
    41204120                  ticket.student.certcode,
    41214121                  ticket.level,
    4122                   ticket.score]
     4122                  ticket.score,
     4123                  ticket.student.lastname # for sorting only
     4124                  ]
    41234125            tickets.append(row)
    4124         return header + sorted(tickets, key=lambda value: value[0]), None
     4126        data = sorted(tickets, key=lambda value: value[7])
     4127        for d in data: d.pop(7)
     4128        return header + data, None
    41254129
    41264130    def render(self):
Note: See TracChangeset for help on using the changeset viewer.