Ignore:
Timestamp:
30 Nov 2017, 07:44:55 (7 years ago)
Author:
Henrik Bettermann
Message:

GPABoundaries may also depend on certcode.

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

Legend:

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

    r14914 r14915  
    214214            pdf_data.append(Spacer(1, 20))
    215215            gpa_class_name = students_utils.GPABoundaries(
    216                 faccode=self.faccode, depcode=self.depcode)[gpa_class][1]
     216                faccode=self.faccode, depcode=self.depcode,
     217                certcode=self.certcode)[gpa_class][1]
    217218            pdf_data += [Paragraph('<strong>%s</strong>' % gpa_class_name,
    218219                         STYLE["Normal"])]
     
    241242        for gpa_class in range(len(students_utils.GPABoundaries())-1,-1,-1):
    242243            gpa_class_name = students_utils.GPABoundaries(
    243                 faccode=self.faccode, depcode=self.depcode)[gpa_class][1]
     244                faccode=self.faccode, depcode=self.depcode,
     245                certcode=self.certcode)[gpa_class][1]
    244246            gpa_count = len(self.data[gpa_class])
    245247            total_count += gpa_count
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14914 r14915  
    817817        return pdf_stream
    818818
    819     def GPABoundaries(self, faccode=None, depcode=None):
     819    def GPABoundaries(self, faccode=None, depcode=None, certcode=None):
    820820        return ((1, 'Fail'),
    821821               (1.5, 'Pass'),
Note: See TracChangeset for help on using the changeset viewer.