Fix problem data bug
This commit is contained in:
parent
e4f46146cc
commit
bdd30f94b7
3 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"problem_sub":[6, 3, 3],
|
||||
"sub_frozen":[6, 3, 4],
|
||||
"sub_frozen":[6, 3, 3],
|
||||
"problems":{
|
||||
"1":{
|
||||
"1":30,
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
{% for batch in batches %}
|
||||
{% if batch.id %}
|
||||
{% set batch_AC = (batch.points == batch.total) %}
|
||||
<tr class="case-row" class= "background-{{ 'd6e8f7' if batch.points == batch.total else 'bisque'}}">
|
||||
<tr class="case-row background-{{'d6e8f7' if batch.points == batch.total else 'bisque'}}">
|
||||
<td>
|
||||
<b>{{ _('Batch ') }}#{{ batch.id }}</b>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue