Changeset 14473 for main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Timestamp:
- 27 Jan 2017, 15:53:33 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r14438 r14473 56 56 ) 57 57 table = [] 58 format_float = getUtility(IKofaUtils).format_float 58 59 for stud in result: 59 60 if not stud['studycourse'].has_key(str(level)): … … 71 72 end_level = getattr(stud['studycourse'].certificate, 'end_level', None) 72 73 if end_level and level >= end_level: 73 cgpa = '%.2f' % (int(100*level_obj.cumulative_params[0])/100.0) 74 cgpa = format_float(level_obj.cumulative_params[0], 2) 75 #cgpa = '%.2f' % (int(100*level_obj.cumulative_params[0])/100.0) 74 76 else: 75 cgpa = '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0) 77 cgpa = format_float(level_obj.cumulative_params[0], 3) 78 #cgpa = '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0) 76 79 if remark == 'FRNS': # Faculty Requirements Not Satisfied (AAUE) 77 80 cgpa = '' … … 82 85 level_obj.gpa_params[1], 83 86 passed_params[2], 84 '%.3f' % (int(1000*level_obj.gpa)/1000.0), 87 format_float(level_obj.gpa, 3), 88 #'%.3f' % (int(1000*level_obj.gpa)/1000.0), 85 89 failed_courses, 86 90 not_taken_courses,
Note: See TracChangeset for help on using the changeset viewer.