|
12 | 12 | {% if score_type is not None and score_type.max_public_score != 0 %} |
13 | 13 | <td class="public_score undefined">{{ _("N/A") }}</td> |
14 | 14 | {% end %} |
| 15 | + {% if score_type is not None and score_type.max_public_score != score_type.max_score %} |
15 | 16 | <td class="total_score undefined">{{ _("N/A") }}</td> |
| 17 | + {% end %} |
16 | 18 | {% elif sr.compilation_outcome == "fail" %} |
17 | 19 | <tr data-submission="{{ s_idx }}" data-status="2"> |
18 | 20 | {% raw col1 %} |
|
23 | 25 | {% if score_type is not None and score_type.max_public_score != 0 %} |
24 | 26 | <td class="public_score undefined">{{ _("N/A") }}</td> |
25 | 27 | {% end %} |
| 28 | + {% if score_type is not None and score_type.max_public_score != score_type.max_score %} |
26 | 29 | <td class="total_score undefined">{{ _("N/A") }}</td> |
| 30 | + {% end %} |
27 | 31 | {% elif not sr.evaluated() %} |
28 | 32 | <tr data-submission="{{ s_idx }}" data-status="3"> |
29 | 33 | {% raw col1 %} |
|
33 | 37 | {% if score_type is not None and score_type.max_public_score != 0 %} |
34 | 38 | <td class="public_score undefined">{{ _("N/A") }}</td> |
35 | 39 | {% end %} |
| 40 | + {% if score_type is not None and score_type.max_public_score != score_type.max_score %} |
36 | 41 | <td class="total_score undefined">{{ _("N/A") }}</td> |
| 42 | + {% end %} |
37 | 43 | {% elif not sr.scored() %} |
38 | 44 | <tr data-submission="{{ s_idx }}" data-status="4"> |
39 | 45 | {% raw col1 %} |
|
43 | 49 | {% if score_type is not None and score_type.max_public_score != 0 %} |
44 | 50 | <td class="public_score undefined">{{ _("N/A") }}</td> |
45 | 51 | {% end %} |
| 52 | + {% if score_type is not None and score_type.max_public_score != score_type.max_score %} |
46 | 53 | <td class="total_score undefined">{{ _("N/A") }}</td> |
| 54 | + {% end %} |
47 | 55 | {% else %} |
48 | 56 | <tr data-submission="{{ s_idx }}" data-status="5"> |
49 | 57 | {% raw col1 %} |
|
58 | 66 | </td> |
59 | 67 | {% end %} |
60 | 68 |
|
61 | | - {% if s.token is not None %} |
62 | | - {% if score_type is not None and score_type.max_score != 0 %} |
| 69 | + {% if score_type is not None and score_type.max_public_score != score_type.max_score %} |
| 70 | + {% if s.token is not None %} |
| 71 | + {% if score_type.max_score != 0 %} |
63 | 72 | <td class="total_score {{ get_score_class(sr.score, score_type.max_score) }}"> |
64 | | - {{ "%g" % round(sr.score, task.score_precision) }} / {{ "%g" % round(score_type.max_score, task.score_precision) }} |
| 73 | + {{ "%g" % round(sr.score, task.score_precision) }} / {{ "%g" % round(score_type.max_score, task.score_precision) }} |
65 | 74 | </td> |
66 | | - {% else %} |
| 75 | + {% else %} |
67 | 76 | <td class="total_score"> |
68 | | - {{ "%g" % round(sr.score, task.score_precision) }} |
| 77 | + {{ "%g" % round(sr.score, task.score_precision) }} |
69 | 78 | </td> |
70 | | - {% end %} |
71 | | - {% else %} |
| 79 | + {% end %} |
| 80 | + {% else %} |
72 | 81 | <td class="total_score undefined"> |
73 | 82 | {{ _("N/A") }} |
74 | 83 | </td> |
| 84 | + {% end %} |
75 | 85 | {% end %} |
76 | 86 | {% end %} |
77 | 87 | <td class="files"> |
|
0 commit comments