1
0
forked from ScoDoc/ScoDoc
This commit is contained in:
Emmanuel Viennet 2022-11-13 18:36:07 +01:00
parent d2356367c6
commit 01cbfeba3a
2 changed files with 5 additions and 5 deletions

View File

@ -220,10 +220,8 @@ class releveBUT extends HTMLElement {
<div>Min. promo. :</div><div>${data.semestre.notes.min}</div> <div>Min. promo. :</div><div>${data.semestre.notes.min}</div>
</div> </div>
${(() => { ${(() => {
if (data.semestre.rang.groupes == null) { if ((!data.semestre.rang.groupes) ||
return ""; (Object.keys(data.semestre.rang.groupes).length == 0)) {
}
if (Object.keys(data.semestre.rang.groupes).length == 0) {
return ""; return "";
} }
let output = ""; let output = "";

View File

@ -1380,8 +1380,10 @@ def _ProcessBilletAbsence(
@scodoc @scodoc
@permission_required(Permission.ScoAbsChange) @permission_required(Permission.ScoAbsChange)
@scodoc7func @scodoc7func
def process_billet_absence_form(billet_id): def process_billet_absence_form(billet_id: int):
"""Formulaire traitement d'un billet""" """Formulaire traitement d'un billet"""
if not isinstance(billet_id, int):
raise abort(404, "billet_id invalide")
billet: BilletAbsence = ( billet: BilletAbsence = (
BilletAbsence.query.filter_by(id=billet_id) BilletAbsence.query.filter_by(id=billet_id)
.join(Identite) .join(Identite)