- Timestamp:
- 30 Nov 2017, 12:57:05 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14675 r14918 186 186 certificate = getattr(self.__parent__,'certificate',None) 187 187 end_level = getattr(certificate, 'end_level', None) 188 study_mode = getattr(certificate, 'study_mode', None) 189 is_dp = False 190 if study_mode and study_mode.startswith('dp'): 191 is_dp = True 188 192 failed_limit = 1.5 189 193 if self.student.entry_session < 2013: … … 213 217 return 'Fail' 214 218 if self.cumulative_params[0] < 1.5: 219 if is_dp: 220 return 'Fail' 215 221 return 'Pass' 216 222 if self.cumulative_params[0] < 2.4: 223 if is_dp: 224 return 'Pass' 217 225 return '3s_rd_s' 218 226 if self.cumulative_params[0] < 3.5: 227 if is_dp: 228 return 'Merit' 219 229 return '2s_2_s' 220 230 if self.cumulative_params[0] < 4.5: 231 if is_dp: 232 return 'Credit' 221 233 return '2s_1_s' 222 234 if self.cumulative_params[0] < 5.1: 235 if is_dp: 236 return 'Distinction' 223 237 return '1s_st_s' 224 238 return 'N/A'
Note: See TracChangeset for help on using the changeset viewer.