- Timestamp:
- 5 Jan 2017, 08:36:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r14361 r14368 160 160 def passed_params(self): 161 161 """Determine the number and credits of passed and failed courses. 162 Count the number of courses registered but not taken. 162 163 This method is used for level reports. 163 164 """ … … 166 167 credits_failed = 0 167 168 credits_passed = 0 169 no_courses_not_taken = 0 168 170 for ticket in self.values(): 169 171 if ticket.total_score is not None: … … 178 180 passed += 1 179 181 credits_passed += ticket.credits 180 return passed, failed, credits_passed, credits_failed, courses_failed 182 else: 183 no_courses_not_taken += 1 184 return (passed, failed, credits_passed, 185 credits_failed, courses_failed, 186 no_courses_not_taken) 181 187 182 188 @property
Note: See TracChangeset for help on using the changeset viewer.