Ignore:
Timestamp:
6 Oct 2021, 13:04:07 (3 years ago)
Author:
Henrik Bettermann
Message:

Do r16662 right.

File:
1 edited

Legend:

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

    r16662 r16666  
    154154            # collect failed, not taken and all courses
    155155            for level in student['studycourse'].values():
     156                # check if already failed or not taken courses have been passed later
     157                for code in failedticketcodes:
     158                    if code in level.passed_params[6]:
     159                        failedticketcodes.remove(code)
     160                for code in nottakenticketcodes:
     161                    if code in level.passed_params[6]:
     162                        nottakenticketcodes.remove(code)
    156163                failedticketcodes += level.passed_params[4].split()
    157164                nottakenticketcodes += level.passed_params[5].split()
    158165                for ticket in level.values():
    159166                    allticketcodes.append(ticket.code)
    160             # check if failed or not taken courses have been passed later
    161             for code in failedticketcodes:
    162                 if code in level.passed_params[6]:
    163                     failedticketcodes.remove(code)
    164             for code in nottakenticketcodes:
    165                 if code in level.passed_params[6]:
    166                     nottakenticketcodes.remove(code)
    167167            # collect missed tickets
    168168            for certcourse in certificate.values():
Note: See TracChangeset for help on using the changeset viewer.