From bdd30f94b74befbc0827d8bdaf6ae8d9c8061163 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 20 Dec 2022 00:02:28 -0600 Subject: [PATCH] Fix problem data bug --- resources/contest.json | 2 +- templates/problem/data.html | 6 +++--- templates/submission/status-testcases.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/contest.json b/resources/contest.json index fcf0562..7f7f91b 100644 --- a/resources/contest.json +++ b/resources/contest.json @@ -1,6 +1,6 @@ { "problem_sub":[6, 3, 3], - "sub_frozen":[6, 3, 4], + "sub_frozen":[6, 3, 3], "problems":{ "1":{ "1":30, diff --git a/templates/problem/data.html b/templates/problem/data.html index afda55d..ae4b713 100644 --- a/templates/problem/data.html +++ b/templates/problem/data.html @@ -44,7 +44,6 @@ } $("#id_problem-data-checker").select2(); - $("#problem-type").select2(); update_select2(); function autofill_if_exists($select, file) { @@ -391,8 +390,9 @@ } }); - // Change to OI if the first row point > 0 - if($("#id_cases-0-points").val() != '0') $('#problem-type').val('OI'); + // Change to OI if the first row point > 0 + if($("#id_cases-0-points").val() != '0') $('#problem-type').val('OI'); + $("#problem-type").select2(); // Change batch_starts based on current tests function update_batch_starts() { diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html index 71cfeaf..db743be 100644 --- a/templates/submission/status-testcases.html +++ b/templates/submission/status-testcases.html @@ -84,7 +84,7 @@ {% for batch in batches %} {% if batch.id %} {% set batch_AC = (batch.points == batch.total) %} - + {{ _('Batch ') }}#{{ batch.id }}