44
55{% block extrahead %}
66{{ 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 >
1111<style >
1212.card-body.tablecard {
1313 overflow-y : auto ;
@@ -50,9 +50,9 @@ $(function() {
5050 <br>
5151 Calculated as:<br>
5252 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 >
5454 # 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 >
5656 # of Teams: {{ misc .num_teams }}<br >
5757 </div >
5858 </div >
@@ -116,13 +116,13 @@ $(function() {
116116 {% set id=p.probid %}
117117 <tr >
118118 {% 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 >
120120 <td ><a href =" {{ link }}" >{{ p | problemBadge }} {{ p .problem .name }}</a ></td >
121121 <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 >
123123 <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 >
126126 </tr >
127127 {% endfor %}
128128 </tbody >
@@ -156,8 +156,8 @@ $(function() {
156156 <td ><a href =" {{ link }}" >{% if t .affiliation %}{{ t .affiliation .name }}{% else %}-{% endif %}</a ></td >
157157 <td class =" truncate" style =" max-width: 200px" ><a href =" {{ link }}" >{{ t .effectiveName }}</a ></td >
158158 <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 >
161161 </tr >
162162 {% endfor %}
163163 </tbody >
@@ -173,7 +173,7 @@ $(function() {
173173 Delayed Judgings (by more than {{ delayed_judgings .delay }}s)
174174 </div >
175175 <div class =" card-body tablecard" >
176- {% if delayed_judgings .data | length > 0 %}
176+ {% if delayed_judgings .data | length > 0 %}
177177 <table class =" table table-sm table-striped table-hover table-full-clickable-cell" >
178178 <thead >
179179 <tr >
@@ -235,7 +235,7 @@ var language_stats = [
235235 values: [
236236 {% for lang,count in misc .language_stats .total_submissions % }
237237 {
238- " label" : " {{lang}}" ,
238+ " label" : " {{ lang }}" ,
239239 " value" : {{ count }},
240240 },
241241 {% endfor % }
@@ -247,7 +247,7 @@ var language_stats = [
247247 values: [
248248 {% for lang,count in misc .language_stats .total_solutions % }
249249 {
250- " label" : " {{lang}}" ,
250+ " label" : " {{ lang }}" ,
251251 " value" : {{ count }},
252252 },
253253 {% endfor % }
@@ -288,8 +288,8 @@ var problem_stats = [
288288 values: [
289289 {% for prob in problems % }
290290 {
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 }},
293293 },
294294 {% endfor % }
295295 ]
@@ -300,8 +300,8 @@ var problem_stats = [
300300 values: [
301301 {% for prob in problems % }
302302 {
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 }},
305305 },
306306 {% endfor % }
307307 ]
@@ -344,8 +344,8 @@ nv.addGraph(function() {
344344const submission_stats = [
345345 {% for result in [' correct' , ' wrong-answer' , ' timelimit' , ' run-error' , ' compiler-error' , ' no-output' ] %}
346346 {
347- key: " {{result}}" ,
348- color: " {{colors[result]}}" ,
347+ key: " {{ result }}" ,
348+ color: " {{ colors[result] }}" ,
349349 values: []
350350 },
351351 {% endfor %}
0 commit comments