Description:
shows scores only for submitted problems
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r386:aef66acd0ee0 - - 2 files changed: 5 inserted, 1 deleted
@@ -133,7 +133,7 | |||||
|
133 | if (sub!=nil) and (sub.points!=nil) |
|
133 | if (sub!=nil) and (sub.points!=nil) |
|
134 | ustat << [(sub.points.to_f*100/p.full_score).round, (sub.points>=p.full_score)] |
|
134 | ustat << [(sub.points.to_f*100/p.full_score).round, (sub.points>=p.full_score)] |
|
135 | else |
|
135 | else |
|
136 |
- ustat << [ |
|
136 | + ustat << [nil,false] |
|
137 | end |
|
137 | end |
|
138 | end |
|
138 | end |
|
139 | @scorearray << ustat |
|
139 | @scorearray << ustat |
@@ -35,9 +35,13 | |||||
|
35 | <%= sc[i].contests.collect {|c| c.name}.join(', ') %> |
|
35 | <%= sc[i].contests.collect {|c| c.name}.join(', ') %> |
|
36 | </td> |
|
36 | </td> |
|
37 |
<% else %> |
|
37 | <% else %> |
|
|
38 | + <% if sc[i][0] != nil %> | ||
|
38 | <td><%= sc[i][0] %></td> |
|
39 | <td><%= sc[i][0] %></td> |
|
39 | <% total += sc[i][0] %> |
|
40 | <% total += sc[i][0] %> |
|
40 | <% num_passed += 1 if sc[i][1] %> |
|
41 | <% num_passed += 1 if sc[i][1] %> |
|
|
42 | + <% else %> | ||
|
|
43 | + <td>-</td> | ||
|
|
44 | + <% end %> | ||
|
41 | <% end %> |
|
45 | <% end %> |
|
42 | <% end %> |
|
46 | <% end %> |
|
43 | <td><%= total %></td> |
|
47 | <td><%= total %></td> |
You need to be logged in to leave comments.
Login now