Changeset 14536 for main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Timestamp:
- 12 Feb 2017, 19:58:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r14529 r14536 71 71 remark = getattr(level_obj, 'remark', '') 72 72 end_level = getattr(stud['studycourse'].certificate, 'end_level', None) 73 credits_counted = level_obj.gpa_params[1] 74 credits_passed = passed_params[2] 75 level_gpa = format_float(level_obj.gpa, 3) 76 cum_credits_taken = level_obj.cumulative_params[1] 77 cum_credits_passed = level_obj.cumulative_params[4] 73 78 if end_level and level >= end_level: 74 79 cgpa = format_float(level_obj.cumulative_params[0], 2) 75 #cgpa = '%.2f' % (int(100*level_obj.cumulative_params[0])/100.0)76 80 else: 77 81 cgpa = format_float(level_obj.cumulative_params[0], 3) 78 #cgpa = '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0)79 if remark in ('FRNS', 'NER'): # requestd by AAUE, Nigeria82 if remark in ('FRNS', 'NER'): 83 # hide all data (requestd by AAUE, Nigeria) 80 84 cgpa = '' 85 credits_counted = '' 86 credits_passed = '' 87 level_gpa = '' 88 failed_courses = '' 89 not_taken_courses = '' 90 cum_credits_taken = '' 91 cum_credits_passed = '' 81 92 line = ( 82 #stud.student_id,83 93 stud.matric_number, 84 94 fullname, 85 level_obj.gpa_params[1], 86 passed_params[2], 87 format_float(level_obj.gpa, 3), 88 #'%.3f' % (int(1000*level_obj.gpa)/1000.0), 95 credits_counted, 96 credits_passed, 97 level_gpa, 89 98 failed_courses, 90 99 not_taken_courses, 91 level_obj.cumulative_params[1],92 level_obj.cumulative_params[4],100 cum_credits_taken, 101 cum_credits_passed, 93 102 cgpa, 94 103 remark, … … 128 137 result = [] 129 138 col_names = ( 130 #'Student Id',131 139 'S/N', 132 140 'Matric No.',
Note: See TracChangeset for help on using the changeset viewer.