Changeset 16673


Ignore:
Timestamp:
8 Oct 2021, 07:16:29 (3 years ago)
Author:
Henrik Bettermann
Message:

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

File:
1 edited

Legend:

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

    r14966 r16673  
    7878        """
    7979        final_level = max(level_obj.student['studycourse'].keys())
    80         # Filter out all students with extension levels.
    81         if int(final_level) > level_obj.student['studycourse'].certificate.end_level:
    82             return True
     80        # Filter out all students with extension levels (only if end_level has been selected)
     81        if level_obj.level == level_obj.student['studycourse'].certificate.end_level:
     82            if int(final_level) > level_obj.student['studycourse'].certificate.end_level:
     83                return True
    8384        final_level_obj = level_obj.student['studycourse'][final_level]
    8485        if final_level_obj.remark not in (
Note: See TracChangeset for help on using the changeset viewer.