Ignore:
Timestamp:
29 Aug 2013, 05:24:10 (11 years ago)
Author:
Henrik Bettermann
Message:

Derive information about passed and failed course.

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

Legend:

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

    r10552 r10553  
    5454        if level_obj.level_session != session:
    5555            continue
     56        passed_params = level_obj.passed_params
    5657        line = (stud.student_id,
    5758                stud.matric_number,
    5859                stud.display_fullname,
    5960                level_obj.total_credits,
    60                 level_obj.gpa)
     61                passed_params[2],
     62                level_obj.gpa,
     63                passed_params[4],
     64                )
    6165        table.append(line)
    6266    return table
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py

    r10552 r10553  
    1919        result = get_students_by('fac1', 'dep1', 2010, 100)
    2020        self.assertEqual(result,
    21             [(u'K1000000', u'1234', u'Bob Tester', 30, 5.0)])
     21            [(u'K1000000', u'1234', u'Bob Tester', 30, 30, 5.0, [])])
    2222        return
Note: See TracChangeset for help on using the changeset viewer.