- Timestamp:
- 19 Dec 2016, 11:43:31 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14355 r14357 84 84 85 85 @property 86 def passed_params(self): 87 """Determine the number and credits of passed and failed courses. 88 This method is used for level reports. 89 """ 90 passed = failed = 0 91 courses_failed = '' 92 credits_failed = 0 93 credits_passed = 0 94 for ticket in self.values(): 95 if None not in (ticket.score, ticket.ca): 96 if ticket.total_score < ticket.passmark: 97 failed += 1 98 credits_failed += ticket.credits 99 if ticket.mandatory: 100 courses_failed += 'm_%s_m ' % ticket.code 101 else: 102 courses_failed += '%s ' % ticket.code 103 else: 104 passed += 1 105 credits_passed += ticket.credits 106 return passed, failed, credits_passed, credits_failed, courses_failed 107 108 @property 86 109 def course_registration_forbidden(self): 87 110 fac_dep_paid = True
Note: See TracChangeset for help on using the changeset viewer.