Ignore:
Timestamp:
11 Oct 2021, 06:25:26 (3 years ago)
Author:
Henrik Bettermann
Message:

Filter out all students with extension levels (only if end_level has been selected) - part 2

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

    r14972 r16676  
    7272        final_level = max(level_obj.student['studycourse'].keys())
    7373        # Filter out all students with extension levels.
    74         if int(final_level) > level_obj.student['studycourse'].certificate.end_level:
    75             return True
     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
    7678        final_level_obj = level_obj.student['studycourse'][final_level]
    7779        if final_level_obj.remark not in (
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/session_results_presentation.py

    r14978 r16676  
    127127        """
    128128        final_level = max(level_obj.student['studycourse'].keys())
    129         # Filter out all students with extension levels.
    130         if int(final_level) > level_obj.student['studycourse'].certificate.end_level:
    131             return True
     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
    132133        final_level_obj = level_obj.student['studycourse'][final_level]
    133134        if final_level_obj.remark not in (
Note: See TracChangeset for help on using the changeset viewer.