Ignore:
Timestamp:
23 Mar 2022, 07:05:20 (3 years ago)
Author:
Henrik Bettermann
Message:

Consider course_category in addStudentStudyLevel` method.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r16831 r16901  
    441.7.2.dev0 (unreleased)
    55=======================
     6
     7* Consider `course_category` in addStudentStudyLevel` method.
    68
    79* Add `previous` field to `StudentStudyCourseProcessor`,
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py

    r16800 r16901  
    8282        return False
    8383
    84     def addStudentStudyLevel(self, cert, studylevel):
     84    def addStudentStudyLevel(self, cert, studylevel, course_category=None):
    8585        """Add a study level object.
    8686        """
     
    106106            if val.total_score >= val.passmark:
    107107                continue
     108            if course_category and val.course_category != course_category:
     109                continue
    108110            if key in self[str(studylevel.level)]:
    109111                # Carry-over ticket exists
     
    111113            co_ticket = createObject(u'waeup.CourseTicket')
    112114            for name in ['code', 'title', 'credits', 'passmark',
    113                          'semester', 'mandatory', 'fcode', 'dcode']:
     115                         'semester', 'mandatory', 'fcode', 'dcode',
     116                         'course_category']:
    114117                setattr(co_ticket, name, getattr(val, name))
    115118            co_ticket.automatic = True
Note: See TracChangeset for help on using the changeset viewer.