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],
|
"problem_sub":[6, 3, 3],
|
||||||
"sub_frozen":[6, 3, 4],
|
"sub_frozen":[6, 3, 3],
|
||||||
"problems":{
|
"problems":{
|
||||||
"1":{
|
"1":{
|
||||||
"1":30,
|
"1":30,
|
||||||
|
|
|
@ -44,7 +44,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#id_problem-data-checker").select2();
|
$("#id_problem-data-checker").select2();
|
||||||
$("#problem-type").select2();
|
|
||||||
update_select2();
|
update_select2();
|
||||||
|
|
||||||
function autofill_if_exists($select, file) {
|
function autofill_if_exists($select, file) {
|
||||||
|
@ -393,6 +392,7 @@
|
||||||
|
|
||||||
// Change to OI if the first row point > 0
|
// Change to OI if the first row point > 0
|
||||||
if($("#id_cases-0-points").val() != '0') $('#problem-type').val('OI');
|
if($("#id_cases-0-points").val() != '0') $('#problem-type').val('OI');
|
||||||
|
$("#problem-type").select2();
|
||||||
|
|
||||||
// Change batch_starts based on current tests
|
// Change batch_starts based on current tests
|
||||||
function update_batch_starts() {
|
function update_batch_starts() {
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
{% for batch in batches %}
|
{% for batch in batches %}
|
||||||
{% if batch.id %}
|
{% if batch.id %}
|
||||||
{% set batch_AC = (batch.points == batch.total) %}
|
{% 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>
|
<td>
|
||||||
<b>{{ _('Batch ') }}#{{ batch.id }}</b>
|
<b>{{ _('Batch ') }}#{{ batch.id }}</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue