New settings to only count bad submissions
This commit is contained in:
parent
b887288c78
commit
cd73622cae
9 changed files with 61 additions and 18 deletions
|
|
@ -24,11 +24,14 @@
|
|||
|
||||
function waitDiff(i) {
|
||||
refresh_my((my) => {
|
||||
if (my && my.exercices[exercice.id].tries != exercice.tries) {
|
||||
if (my && my.exercices[exercice.id].solved_time != exercice.solved_time) {
|
||||
submitInProgress = false;
|
||||
refresh_teams();
|
||||
} else if (i > 0) {
|
||||
setTimeout(waitDiff, 450, i-1);
|
||||
} else {
|
||||
timeouted = true;
|
||||
submitInProgress = false;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
@ -110,11 +113,11 @@
|
|||
{exercice.flags.length}/{exercice.nb_flags}
|
||||
</Progress>
|
||||
{/if}
|
||||
{#if exercice.tries || exercice.submitted || sberr}
|
||||
{#if exercice.tries || exercice.solved_time || exercice.submitted || sberr || timeouted}
|
||||
<ListGroup class="border-dark">
|
||||
{#if exercice.solved_time && exercice.tries}
|
||||
{#if exercice.solved_time || exercice.tries}
|
||||
<ListGroupItem class="text-warning rounded-0">
|
||||
{exercice.tries} {exercice.tries==1?"tentative effectuée":"tentatives effectuées"}.
|
||||
{#if exercice.tries > 0}{exercice.tries} {exercice.tries==1?"tentative effectuée":"tentatives effectuées"}.{/if}
|
||||
Dernière solution envoyée à <DateFormat date={exercice.solved_time} />.
|
||||
</ListGroupItem>
|
||||
{/if}
|
||||
|
|
|
|||
Reference in a new issue