Description:
fix full score
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r444:bbb2dd914404 - - 1 file changed: 1 inserted, 1 deleted
@@ -19,28 +19,28 | |||||
|
19 |
|
19 | ||
|
20 |
|
20 | ||
|
21 | %h2 Problem Stat |
|
21 | %h2 Problem Stat |
|
22 |
|
22 | ||
|
23 | %h2 Submissions |
|
23 | %h2 Submissions |
|
24 |
|
24 | ||
|
25 | %table.tablesorter-cafe#submission_table |
|
25 | %table.tablesorter-cafe#submission_table |
|
26 | %thead |
|
26 | %thead |
|
27 | %tr |
|
27 | %tr |
|
28 | %th ID |
|
28 | %th ID |
|
29 | %th Problem code |
|
29 | %th Problem code |
|
30 | %th Problem name |
|
30 | %th Problem name |
|
31 | %th Language |
|
31 | %th Language |
|
32 | %th Result |
|
32 | %th Result |
|
33 | %th Score |
|
33 | %th Score |
|
34 | %tbody |
|
34 | %tbody |
|
35 | - @submission.each do |s| |
|
35 | - @submission.each do |s| |
|
36 | - next unless s.problem |
|
36 | - next unless s.problem |
|
37 | %tr |
|
37 | %tr |
|
38 | %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id |
|
38 | %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id |
|
39 | %td= s.problem.name |
|
39 | %td= s.problem.name |
|
40 | %td= s.problem.full_name |
|
40 | %td= s.problem.full_name |
|
41 | %td= s.language.pretty_name |
|
41 | %td= s.language.pretty_name |
|
42 | %td.fix-width= s.grader_comment |
|
42 | %td.fix-width= s.grader_comment |
|
43 |
- %td= s.points/s.problem.full_score |
|
43 | + %td= (s.points*100)/s.problem.full_score |
|
44 |
|
44 | ||
|
45 |
|
45 | ||
|
46 |
|
46 |
You need to be logged in to leave comments.
Login now