Changeset 15822
- Timestamp:
- 18 Nov 2019, 13:24:41 (5 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r15713 r15822 1027 1027 else: 1028 1028 formvals = dict(zip(form['sids'], zip( 1029 form['scores'], form['cas'], form['imported_ts s'])))1029 form['scores'], form['cas'], form['imported_ts']))) 1030 1030 for ticket in self.editable_tickets: 1031 1031 ticket_error = False … … 1176 1176 failed = 0 1177 1177 with_ca = False 1178 grade_stats = {'A':0, 'B':0, 'C':0, 'D':0, 'E':0, 'F':0, } 1178 1179 for ticket in sorted_tickets: 1179 1180 if ticket.ca > 0: … … 1183 1184 total = "**%s**" % ticket.imported_ts 1184 1185 grade = ticket._getGradeWeightFromScore[0] 1186 if grade in grade_stats.keys(): 1187 grade_stats[grade] += 1 1185 1188 if grade in ('F', '-'): 1186 1189 failed += 1 … … 1233 1236 del(ticket[5]) 1234 1237 return header + tickets, [ 1235 dep, fac, total, passed, passed_perc, failed, failed_perc ]1238 dep, fac, total, passed, passed_perc, failed, failed_perc, grade_stats] 1236 1239 1237 1240 def render(self): -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/editscorespage.pt
r15547 r15822 105 105 </td> 106 106 <td style="width: 65px;"> 107 <input type="text" name="imported_ts s:list" class="form-control"107 <input type="text" name="imported_ts:list" class="form-control" 108 108 tal:attributes="value ticket/imported_ts" /> 109 109 </td>
Note: See TracChangeset for help on using the changeset viewer.