This commit is contained in:
Emmanuel Viennet 2022-11-13 18:36:07 +01:00 committed by iziram
parent 559b66de8b
commit 49d176c603
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>
${(() => {
if (data.semestre.rang.groupes == null) {
return "";
}
if (Object.keys(data.semestre.rang.groupes).length == 0) {
if ((!data.semestre.rang.groupes) ||
(Object.keys(data.semestre.rang.groupes).length == 0)) {
return "";
}
let output = "";

View File

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