diff --git a/app/views/notes.py b/app/views/notes.py index f433dadba..ce3d6b88b 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -2248,7 +2248,7 @@ def formsemestre_validation_but(formsemestre_id: int, etudid: int): formsemestre = FormSemestre.query.get_or_404(formsemestre_id) etud = Identite.query.get_or_404(etudid) - if formsemestre.etuds_inscriptions[16405].etat != scu.INSCRIT: + if formsemestre.etuds_inscriptions[etudid].etat != scu.INSCRIT: return ( "\n".join(H) + f"""