File tree 2 files changed +5
-25
lines changed 2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,8 @@ public function getMiscContestStatistics(
183
183
$ misc ['problem_stats ' ]['teams_attempted ' ][$ s ->getProblem ()->getProbId ()][$ team ->getTeamId ()] = $ team ->getTeamId ();
184
184
185
185
static ::setOrIncrement ($ misc ['language_stats ' ]['total_submissions ' ],
186
- $ s ->getLanguage ()->getLangid ());
187
- $ misc ['language_stats ' ]['teams_attempted ' ][$ s ->getLanguage ()->getLangid ()][$ team ->getTeamId ()] = $ team ->getTeamId ();
186
+ $ s ->getLanguage ()->getName ());
187
+ $ misc ['language_stats ' ]['teams_attempted ' ][$ s ->getLanguage ()->getName ()][$ team ->getTeamId ()] = $ team ->getTeamId ();
188
188
189
189
if ($ s ->getResult () != 'correct ' ) {
190
190
continue ;
@@ -197,9 +197,9 @@ public function getMiscContestStatistics(
197
197
$ s ->getProblem ()->getProbId ());
198
198
$ misc ['problem_stats ' ]['teams_solved ' ][$ s ->getProblem ()->getProbId ()][$ team ->getTeamId ()] = $ team ->getTeamId ();
199
199
200
- $ misc ['language_stats ' ]['teams_solved ' ][$ s ->getLanguage ()->getLangid ()][$ team ->getTeamId ()] = $ team ->getTeamId ();
200
+ $ misc ['language_stats ' ]['teams_solved ' ][$ s ->getLanguage ()->getName ()][$ team ->getTeamId ()] = $ team ->getTeamId ();
201
201
static ::setOrIncrement ($ misc ['language_stats ' ]['total_solutions ' ],
202
- $ s ->getLanguage ()->getLangid ());
202
+ $ s ->getLanguage ()->getName ());
203
203
204
204
if ($ lastSubmission == null || $ s ->getSubmitTime () > $ lastSubmission ->getSubmitTime ()) {
205
205
$ lastSubmission = $ s ;
Original file line number Diff line number Diff line change @@ -54,26 +54,6 @@ $(function() {
54
54
# Submissions: {{ misc .total_submissions }}<br >
55
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
-
58
- <!--
59
- # of Teams solving n problems<br>
60
- <table class="table table-sm">
61
- <thead>
62
- <tr>
63
- {% for x in range (0 , problems |length ) %}
64
- <th>{{x }}</th>
65
- {% endfor %}
66
- </tr>
67
- </thead>
68
- <tbody>
69
- <tr>
70
- {% for n in range (0 , problems |length ) %}
71
- <td>{{ misc ['teams_solved_n_problems' ][n ]| default (' ' ) }}</td>
72
- {% endfor %}
73
- </tr>
74
- </tbody>
75
- </table>
76
- -->
77
57
</div >
78
58
</div >
79
59
</div >
@@ -350,7 +330,7 @@ nv.addGraph(function() {
350
330
d3 .selectAll (' #graph_problems .nv-bar' ).each (function (d ) {
351
331
if (d .value === 0 ) {
352
332
d3 .select (this ).attr (' height' , 0 );
353
- d3 .select (this ).attr (' y' , chart .yAxis .scale ()(0 ));
333
+ d3 .select (this ).attr (' y' , chart .yAxis .scale ()(0 ));
354
334
}
355
335
});
356
336
});
You can’t perform that action at this time.
0 commit comments