Ignore:
Timestamp:
5 Jan 2017, 08:45:08 (8 years ago)
Author:
Henrik Bettermann
Message:

Add column.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py

    r14270 r14370  
    3030        result = get_students('fac1', 'dep1', 2010, 100)
    3131        self.assertEqual(result,
    32             [(u'1234', u'TESTER, Bob', 30, 30, 5.0, '', 30, 30, 5.0, 'Proceed')])
     32            [(u'1234', u'TESTER, Bob', 30, 30, 0, 5.0, '', 30, 30, 5.0, 'Proceed')])
    3333        return
    3434
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14362 r14370  
    9595        credits_failed = 0
    9696        credits_passed = 0
     97        no_courses_not_taken = 0
    9798        for ticket in self.values():
    9899            if None not in (ticket.score, ticket.ca):
     
    107108                    passed += 1
    108109                    credits_passed += ticket.credits
    109         return passed, failed, credits_passed, credits_failed, courses_failed
     110            else:
     111                no_courses_not_taken += 1
     112        return (passed, failed, credits_passed,
     113                credits_failed, courses_failed,
     114                no_courses_not_taken)
    110115
    111116    @property
Note: See TracChangeset for help on using the changeset viewer.