Ignore:
Timestamp:
13 Feb 2025, 12:08:21 (10 hours ago)
Author:
Henrik Bettermann
Message:

Fix conditions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r18017 r18023  
    5656            #    if studylevel.level == 400 and studylevel.total_credits < 29:
    5757            #        return _('Minimum credits not reached.')
    58             if studylevel.level in (300, 400) and studylevel.total_credits < 27:
    59                 return _('Minimum credits not reached.')
    60             elif studylevel.total_credits < 30:
     58            if studylevel.level in (300, 400):
     59                if studylevel.total_credits < 27:
     60                    return _('Minimum credits not reached.')
     61            else:
     62                if studylevel.total_credits < 30:
    6163                    return _('Minimum credits not reached.')
    6264        return
Note: See TracChangeset for help on using the changeset viewer.