EtatAbsencesGr: fix affichage boursier et justif. non utilisés

This commit is contained in:
Emmanuel Viennet 2022-05-03 02:37:14 +02:00
parent ae3a59172e
commit 78b081335b

View File

@ -871,7 +871,10 @@ def EtatAbsencesGr(
) )
nbjustifs_noabs = len( nbjustifs_noabs = len(
sco_abs.list_abs_justifs( sco_abs.list_abs_justifs(
etudid=etud["etudid"], datedebut=datedebut, only_no_abs=True etudid=etud["etudid"],
datedebut=datedebut,
datefin=datefin,
only_no_abs=True,
) )
) )
# retrouve sem dans etud['sems'] # retrouve sem dans etud['sems']
@ -894,7 +897,7 @@ def EtatAbsencesGr(
"nbjustifs_noabs": nbjustifs_noabs, "nbjustifs_noabs": nbjustifs_noabs,
"_nomprenom_target": "CalAbs?etudid=%s" % etud["etudid"], "_nomprenom_target": "CalAbs?etudid=%s" % etud["etudid"],
"_nomprenom_td_attrs": 'id="%s" class="etudinfo"' % etud["etudid"], "_nomprenom_td_attrs": 'id="%s" class="etudinfo"' % etud["etudid"],
"boursier": etud["boursier"], "boursier": "oui" if etud["boursier"] else "non",
} }
) )
if s["ins"]["etat"] == "D": if s["ins"]["etat"] == "D":