Changeset 3620


Ignore:
Timestamp:
8 Aug 2008, 12:07:32 (16 years ago)
Author:
Henrik Bettermann
Message:

catch empty course results

Location:
WAeUP_SRP/unilorin/waeup_custom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/unilorin/waeup_custom/getTranscriptInfo.py

    r3618 r3620  
    6464        year_details[year_counter]['total_credits'] = total_credits
    6565        year_details[year_counter]['gpa'] = "%4.2f" % (float(gpa)/int(total_credits))
     66    else:
     67        year_details[year_counter]['total_credits'] = 0
     68        year_details[year_counter]['gpa'] = 0   
    6669    year.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x,
    6770                                         "%(semester)s%(code)s" % y))
  • WAeUP_SRP/unilorin/waeup_custom/transcript_view.pt

    r3618 r3620  
    7272        <br />
    7373        <table>
    74           <tr>
     74          <tr tal:condition="details/total_credits" >
    7575            <th>Total Credits:</th>
    7676            <td tal:content="details/total_credits" />
Note: See TracChangeset for help on using the changeset viewer.