Ignore:
Timestamp:
11 Feb 2022, 10:26:53 (3 years ago)
Author:
Henrik Bettermann
Message:

Do not show courses without score.

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

Legend:

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

    r16040 r16800  
    137137                if ticket.outstanding:
    138138                    continue
     139                if ticket.total_score is None:
     140                    continue
    139141                if ticket.semester == 1:
    140142                    tickets_1.append(ticket)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r16662 r16800  
    16381638    def test_export_all(self):
    16391639        self.setup_student(self.student)
     1640        study_course = self.student.get('studycourse')
     1641        study_level = study_course[study_course.keys()[0]]
     1642        ticket = study_level['CRS1']
     1643        ticket.score = 20
    16401644        exporter = TranscriptDataExporter()
    16411645        exporter.export_all(self.app, self.outfile)
Note: See TracChangeset for help on using the changeset viewer.