Changeset 3628 for WAeUP_SRP/unilorin/waeup_custom
- Timestamp:
- 26 Aug 2008, 07:18:47 (17 years ago)
- Location:
- WAeUP_SRP/unilorin/waeup_custom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/unilorin/waeup_custom/getStudyLevelInfo.py
r3476 r3628 85 85 86 86 max_credits = 58 87 info['without_score'] = without_score =False88 87 info['without_score'] = False 88 info['without_cascore'] = False 89 89 90 90 -
WAeUP_SRP/unilorin/waeup_custom/getTranscriptInfo.py
r3620 r3628 54 54 55 55 year_counter = 0 56 cgpa = 0 57 c_total_credits = 0 56 58 for year in year_courses: 57 59 gpa = 0 … … 61 63 gpa += int(course['weight']) * int(course['credits']) 62 64 total_credits += int(course['credits']) 65 cgpa += gpa 66 c_total_credits += total_credits 63 67 if gpa and total_credits: 64 68 year_details[year_counter]['total_credits'] = total_credits … … 66 70 else: 67 71 year_details[year_counter]['total_credits'] = 0 68 year_details[year_counter]['gpa'] = 0 72 year_details[year_counter]['gpa'] = 0 73 74 if cgpa and c_total_credits: 75 year_details[year_counter]['c_total_credits'] = c_total_credits 76 year_details[year_counter]['cgpa'] = "%4.2f" % (float(cgpa)/int(c_total_credits)) 77 else: 78 year_details[year_counter]['c_total_credits'] = 0 79 year_details[year_counter]['cgpa'] = 0 80 69 81 year.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x, 70 82 "%(semester)s%(code)s" % y)) -
WAeUP_SRP/unilorin/waeup_custom/transcript_view.pt
r3620 r3628 73 73 <table> 74 74 <tr tal:condition="details/total_credits" > 75 <th >Total Credits:</th>75 <th width='200pt'>Total Credits:</th> 76 76 <td tal:content="details/total_credits" /> 77 77 </tr> … … 80 80 <td><span tal:content="details/gpa" /></td> 81 81 </tr> 82 <tr> 83 <th>Cumulative Total Credits:</th> 84 <td tal:content="details/c_total_credits" /> 85 </tr> 86 <tr tal:condition="details/cgpa"> 87 <th>CGPA:</th> 88 <td><span tal:content="details/cgpa" /></td> 89 </tr> 82 90 </table> 83 91
Note: See TracChangeset for help on using the changeset viewer.