Changeset 17984


Ignore:
Timestamp:
15 Jan 2025, 12:27:05 (11 hours ago)
Author:
Henrik Bettermann
Message:

Increase upper limit.

File:
1 edited

Legend:

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

    r17951 r17984  
    4040        """
    4141        """
    42         if course and studylevel.total_credits + course.credits > 48:
     42        upper_limit = 53
     43        #if studylevel.certcode == 'BSCEDBIO' and current_level >= end_level:
     44        #    studycourse = studylevel.__parent__
     45        #    certificate = getattr(studycourse,'certificate', None)
     46        #    current_level = studycourse.current_level
     47        #    if None in (current_level, certificate):
     48        #        return
     49        #    upper_limit = 53
     50        if course and studylevel.total_credits + course.credits > upper_limit:
    4351            return _('Maximum credits exceeded.')
    44         if studylevel.total_credits > 48:
     52        if studylevel.total_credits > upper_limit:
    4553            return _('Maximum credits exceeded.')
    4654        if not course:
Note: See TracChangeset for help on using the changeset viewer.