Changeset 14405


Ignore:
Timestamp:
16 Jan 2017, 09:06:37 (8 years ago)
Author:
Henrik Bettermann
Message:

Sort table on matric_number.

File:
1 edited

Legend:

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

    r14391 r14405  
    8787            gpaclass = students_utils.getDegreeClassNumber(level_obj)
    8888            table[gpaclass].append(line)
     89        for i in range(len(students_utils.gpa_boundaries)+1):
     90            if len(table[i]):
     91                table[i] = sorted([value for value in table[i]],
     92                    key=lambda value: value[1])
    8993    return table
    9094
Note: See TracChangeset for help on using the changeset viewer.