4
4
5
5
{% block extrahead %}
6
6
{{ parent () }}
7
- <link rel =" stylesheet" href =" {{asset(' css/nv.d3.min.css' )}}" >
8
- <script src =" {{asset(' js/d3.min.js' )}}" ></script >
9
- <script src =" {{asset(' js/nv.d3.min.js' )}}" ></script >
10
- <script src =" {{asset(' js/FileSaver.min.js' )}}" ></script >
7
+ <link rel =" stylesheet" href =" {{ asset(' css/nv.d3.min.css' ) }}" >
8
+ <script src =" {{ asset(' js/d3.min.js' ) }}" ></script >
9
+ <script src =" {{ asset(' js/nv.d3.min.js' ) }}" ></script >
10
+ <script src =" {{ asset(' js/FileSaver.min.js' ) }}" ></script >
11
11
<style >
12
12
.card-body.tablecard {
13
13
overflow-y : auto ;
@@ -50,9 +50,9 @@ $(function() {
50
50
<br>
51
51
Calculated as:<br>
52
52
average across all teams of [3 people x (number of minutes elapsed - minute last problem solved by team t)]
53
- " >Misery index</abbr >: {{misc .misery_index | number_format (0 )}} minutes<br >
53
+ " >Misery index</abbr >: {{ misc .misery_index | number_format(0 ) }} minutes<br >
54
54
# Submissions: {{ misc .total_submissions }}<br >
55
- # Accepted Submissions: {{ misc .total_accepted }} <span class =" text-muted" >(~{{ (misc .total_submissions>0 ? (misc .total_accepted/misc.total_submissions )*100:0 )| number_format (0 ) }}%)</span ><br >
55
+ # Accepted Submissions: {{ misc .total_accepted }} <span class =" text-muted" >(~{{ (misc .total_submissions>0 ? (misc .total_accepted/misc.total_submissions )*100:0 ) | number_format(0 ) }}%)</span ><br >
56
56
# of Teams: {{ misc .num_teams }}<br >
57
57
</div >
58
58
</div >
@@ -116,13 +116,13 @@ $(function() {
116
116
{% set id=p.probid %}
117
117
<tr >
118
118
{% set link = path(' analysis_problem' , {' probid' : id , ' view' : view }) %}
119
- <td scope =" row" ><a href =" {{path(' analysis_problem' , {' probid' : id , ' view' : view }) }}" >{{ id }}</a ></td >
119
+ <td scope =" row" ><a href =" {{ path(' analysis_problem' , {' probid' : id , ' view' : view }) }}" >{{ id }}</a ></td >
120
120
<td ><a href =" {{ link }}" >{{ p | problemBadge }} {{ p .problem .name }}</a ></td >
121
121
<td ><a href =" {{ link }}" >{{ p .problem .timelimit }}</a ></td >
122
- <td ><a href =" {{ link }}" >{{ p .problem .memlimit | default (' default' ) }}</a ></td >
122
+ <td ><a href =" {{ link }}" >{{ p .problem .memlimit | default(' default' ) }}</a ></td >
123
123
<td ><a href =" {{ link }}" >{{ misc .problem_num_testcases [id ] }}</a ></td >
124
- <td ><a href =" {{ link }}" >{{ misc .problem_attempts [id ]| default (0 ) }} / {{ misc .problem_solutions [id ]| default (0 ) }}</a ></td >
125
- <td ><a href =" {{ link }}" >{{ misc .problem_stats .teams_attempted [id ]| default ([])| length }} / {{ misc .problem_stats .teams_solved [id ]| default ([])| length }}</a ></td >
124
+ <td ><a href =" {{ link }}" >{{ misc .problem_attempts [id ] | default(0 ) }} / {{ misc .problem_solutions [id ] | default(0 ) }}</a ></td >
125
+ <td ><a href =" {{ link }}" >{{ misc .problem_stats .teams_attempted [id ] | default([]) | length }} / {{ misc .problem_stats .teams_solved [id ] | default([]) | length }}</a ></td >
126
126
</tr >
127
127
{% endfor %}
128
128
</tbody >
@@ -156,8 +156,8 @@ $(function() {
156
156
<td ><a href =" {{ link }}" >{% if t .affiliation %}{{ t .affiliation .name }}{% else %}-{% endif %}</a ></td >
157
157
<td class =" truncate" style =" max-width: 200px" ><a href =" {{ link }}" >{{ t .effectiveName }}</a ></td >
158
158
<td ><a href =" {{ link }}" >{{ misc .team_stats [id ].total_submitted }} / {{ misc .team_stats [id ].total_accepted }}</a ></td >
159
- <td ><a href =" {{ link }}" >{{ misc .team_stats [id ].problems_submitted| length }} / {{ misc .team_stats [id ].problems_accepted| length }}</a ></td >
160
- <td ><a href =" {{ link }}" >{{ misc .team_stats [id ].misery_index| number_format (0 ) }}</a ></td >
159
+ <td ><a href =" {{ link }}" >{{ misc .team_stats [id ].problems_submitted | length }} / {{ misc .team_stats [id ].problems_accepted | length }}</a ></td >
160
+ <td ><a href =" {{ link }}" >{{ misc .team_stats [id ].misery_index | number_format(0 ) }}</a ></td >
161
161
</tr >
162
162
{% endfor %}
163
163
</tbody >
@@ -173,7 +173,7 @@ $(function() {
173
173
Delayed Judgings (by more than {{ delayed_judgings .delay }}s)
174
174
</div >
175
175
<div class =" card-body tablecard" >
176
- {% if delayed_judgings .data | length > 0 %}
176
+ {% if delayed_judgings .data | length > 0 %}
177
177
<table class =" table table-sm table-striped table-hover table-full-clickable-cell" >
178
178
<thead >
179
179
<tr >
@@ -235,7 +235,7 @@ var language_stats = [
235
235
values: [
236
236
{% for lang,count in misc .language_stats .total_submissions % }
237
237
{
238
- " label" : " {{lang}}" ,
238
+ " label" : " {{ lang }}" ,
239
239
" value" : {{ count }},
240
240
},
241
241
{% endfor % }
@@ -247,7 +247,7 @@ var language_stats = [
247
247
values: [
248
248
{% for lang,count in misc .language_stats .total_solutions % }
249
249
{
250
- " label" : " {{lang}}" ,
250
+ " label" : " {{ lang }}" ,
251
251
" value" : {{ count }},
252
252
},
253
253
{% endfor % }
@@ -288,8 +288,8 @@ var problem_stats = [
288
288
values: [
289
289
{% for prob in problems % }
290
290
{
291
- " label" : " {{prob.shortname}}" ,
292
- " value" : {{ misc .problem_stats .teams_attempted [prob .probid ]| default ([])| length }},
291
+ " label" : " {{ prob.shortname }}" ,
292
+ " value" : {{ misc .problem_stats .teams_attempted [prob .probid ] | default ([]) | length }},
293
293
},
294
294
{% endfor % }
295
295
]
@@ -300,8 +300,8 @@ var problem_stats = [
300
300
values: [
301
301
{% for prob in problems % }
302
302
{
303
- " label" : " {{prob.shortname}}" ,
304
- " value" : {{ misc .problem_stats .teams_solved [prob .probid ]| default ([])| length }},
303
+ " label" : " {{ prob.shortname }}" ,
304
+ " value" : {{ misc .problem_stats .teams_solved [prob .probid ] | default ([]) | length }},
305
305
},
306
306
{% endfor % }
307
307
]
@@ -344,8 +344,8 @@ nv.addGraph(function() {
344
344
const submission_stats = [
345
345
{% for result in [' correct' , ' wrong-answer' , ' timelimit' , ' run-error' , ' compiler-error' , ' no-output' ] %}
346
346
{
347
- key: " {{result}}" ,
348
- color: " {{colors[result]}}" ,
347
+ key: " {{ result }}" ,
348
+ color: " {{ colors[result] }}" ,
349
349
values: []
350
350
},
351
351
{% endfor %}
0 commit comments