forked from ScoDoc/ScoDoc
Fix #666: affichage malus sur tableau bord modimpl.
This commit is contained in:
parent
2cad6560c4
commit
720ca7222c
@ -40,7 +40,6 @@ from flask import request
|
|||||||
from app.comp import res_sem
|
from app.comp import res_sem
|
||||||
from app.comp.res_compat import NotesTableCompat
|
from app.comp.res_compat import NotesTableCompat
|
||||||
from app.models import FormSemestre
|
from app.models import FormSemestre
|
||||||
from app.models import ScolarNews
|
|
||||||
|
|
||||||
import app.scodoc.sco_utils as scu
|
import app.scodoc.sco_utils as scu
|
||||||
from app.scodoc.sco_utils import ModuleType
|
from app.scodoc.sco_utils import ModuleType
|
||||||
@ -217,19 +216,19 @@ def do_evaluation_etat(
|
|||||||
(TotalNbMissing > 0)
|
(TotalNbMissing > 0)
|
||||||
and (E["evaluation_type"] != scu.EVALUATION_RATTRAPAGE)
|
and (E["evaluation_type"] != scu.EVALUATION_RATTRAPAGE)
|
||||||
and (E["evaluation_type"] != scu.EVALUATION_SESSION2)
|
and (E["evaluation_type"] != scu.EVALUATION_SESSION2)
|
||||||
and not is_malus
|
|
||||||
):
|
):
|
||||||
complete = False
|
complete = False
|
||||||
else:
|
else:
|
||||||
complete = True
|
complete = True
|
||||||
if (
|
|
||||||
TotalNbMissing > 0
|
complete = (
|
||||||
and ((TotalNbMissing == TotalNbAtt) or E["publish_incomplete"])
|
(TotalNbMissing == 0)
|
||||||
and not is_malus
|
or (E["evaluation_type"] == scu.EVALUATION_RATTRAPAGE)
|
||||||
):
|
or (E["evaluation_type"] == scu.EVALUATION_SESSION2)
|
||||||
evalattente = True
|
)
|
||||||
else:
|
evalattente = (TotalNbMissing > 0) and (
|
||||||
evalattente = False
|
(TotalNbMissing == TotalNbAtt) or E["publish_incomplete"]
|
||||||
|
)
|
||||||
# mais ne met pas en attente les evals immediates sans aucune notes:
|
# mais ne met pas en attente les evals immediates sans aucune notes:
|
||||||
if E["publish_incomplete"] and nb_notes == 0:
|
if E["publish_incomplete"] and nb_notes == 0:
|
||||||
evalattente = False
|
evalattente = False
|
||||||
|
@ -564,6 +564,9 @@ def _ligne_evaluation(
|
|||||||
if modimpl.module.ue.type != UE_SPORT:
|
if modimpl.module.ue.type != UE_SPORT:
|
||||||
# Avertissement si coefs x poids nuls
|
# Avertissement si coefs x poids nuls
|
||||||
if coef < scu.NOTES_PRECISION:
|
if coef < scu.NOTES_PRECISION:
|
||||||
|
if modimpl.module.module_type == scu.ModuleType.MALUS:
|
||||||
|
H.append("""<span class="eval_warning_coef">malus</span>""")
|
||||||
|
else:
|
||||||
H.append("""<span class="eval_warning_coef">coef. nul !</span>""")
|
H.append("""<span class="eval_warning_coef">coef. nul !</span>""")
|
||||||
elif is_apc:
|
elif is_apc:
|
||||||
# visualisation des poids (Hinton map)
|
# visualisation des poids (Hinton map)
|
||||||
|
Loading…
Reference in New Issue
Block a user