Ignore:
Timestamp:
4 Feb 2024, 10:54:53 (9 months ago)
Author:
Henrik Bettermann
Message:

Re-enable minimum threshold.

File:
1 edited

Legend:

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

    r17691 r17693  
    4242        if course and studylevel.total_credits + course.credits > 48:
    4343            return _('Maximum credits exceeded.')
    44         elif studylevel.total_credits > 48:
     44        if studylevel.total_credits > 48:
    4545            return _('Maximum credits exceeded.')
    46         #elif studylevel.total_credits < 30:
    47         #    return _('Minimum credits not reached.')
     46        if not course and studylevel.total_credits < 30:
     47            return _('Minimum credits not reached.')
    4848        return
    4949
Note: See TracChangeset for help on using the changeset viewer.