Ignore:
Timestamp:
16 Feb 2020, 09:52:23 (5 years ago)
Author:
Henrik Bettermann
Message:

Sort export of "Data for Lecturer" by fcode, dcode and matric_number.

File:
1 edited

Legend:

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

    r15996 r16006  
    555555
    556556    def filter_func(self, x, **kw):
    557         return get_tickets_for_lecturer(x, **kw)
     557        tickets = get_tickets_for_lecturer(x, **kw)
     558        return sorted([ticket for ticket in tickets],
     559            key=lambda ticket: str(ticket.fcode) + str(ticket.dcode)
     560                + str(ticket.student.matric_number))
    558561
    559562    def mangle_value(self, value, name, context=None):
Note: See TracChangeset for help on using the changeset viewer.