Ignore:
Timestamp:
22 Aug 2016, 09:05:34 (8 years ago)
Author:
Henrik Bettermann
Message:

Display final remark if student reached end level.

File:
1 edited

Legend:

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

    r14079 r14103  
    6060        passed_params = level_obj.passed_params
    6161        failed_courses = textwrap.fill(passed_params[4], 35)
     62        certificate = getattr(stud['studycourse'],'certificate',None)
     63        end_level = certificate.end_level
     64        if stud.current_level >= end_level:
     65            remark = getattr(level_obj, 'final_remark', None)
     66        else:
     67            remark = getattr(level_obj, 'remark', None)
    6268        line = (
    6369                #stud.student_id,
     
    7177                level_obj.cumulative_params[4],
    7278                level_obj.cumulative_params[0],
    73                 getattr(level_obj, 'remark', None),
     79                remark,
    7480                )
    7581        table.append(line)
Note: See TracChangeset for help on using the changeset viewer.