Changeset 16693 for main


Ignore:
Timestamp:
2 Nov 2021, 17:21:20 (3 years ago)
Author:
Henrik Bettermann
Message:

... same for other graduation reports

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students/reports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/raw_score_report.py

    r16676 r16693  
    6868
    6969    def _excluded(self, level_obj):
    70         """
    71         """
    72         final_level = max(level_obj.student['studycourse'].keys())
    73         # Filter out all students with extension levels.
    74         # Filter out all students with extension levels (only if end_level has been selected)
    75         if level_obj.level == level_obj.student['studycourse'].certificate.end_level:
    76             if int(final_level) > level_obj.student['studycourse'].certificate.end_level:
    77                 return True
    78         final_level_obj = level_obj.student['studycourse'][final_level]
    79         if final_level_obj.remark not in (
     70        # Do not list student if selecetd level is not final or an extension
     71        if level_obj.level < level_obj.student['studycourse'].certificate.end_level:
     72            return True
     73        # Filter out students with extension levels higher than selected level
     74        final_level = int(max(level_obj.student['studycourse'].keys()))
     75        if final_level > level_obj.level:
     76            return True
     77        if level_obj.remark not in (
    8078            'Pass', '3s_rd_s', '2s_2_s', '2s_1_s', '1s_st_s'):
    8179            return True
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/session_results_presentation.py

    r16676 r16693  
    124124
    125125    def _excluded(self, level_obj):
    126         """
    127         """
    128         final_level = max(level_obj.student['studycourse'].keys())
    129         # Filter out all students with extension levels (only if end_level has been selected)
    130         if level_obj.level == level_obj.student['studycourse'].certificate.end_level:
    131             if int(final_level) > level_obj.student['studycourse'].certificate.end_level:
    132                 return True
    133         final_level_obj = level_obj.student['studycourse'][final_level]
    134         if final_level_obj.remark not in (
     126        # Do not list student if selecetd level is not final or an extension
     127        if level_obj.level < level_obj.student['studycourse'].certificate.end_level:
     128            return True
     129        # Filter out students with extension levels higher than selected level
     130        final_level = int(max(level_obj.student['studycourse'].keys()))
     131        if final_level > level_obj.level:
     132            return True
     133        if level_obj.remark not in (
    135134            'Pass', '3s_rd_s', '2s_2_s', '2s_1_s', '1s_st_s',
    136135            'Merit', 'Credit', 'Distinction'):
Note: See TracChangeset for help on using the changeset viewer.