From 9989f419cb9eb48ccc21ef9346fa3b3874cc7204 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 22 Jan 2024 16:30:18 +0100 Subject: [PATCH] Fix: 2 typos --- app/scodoc/sco_page_etud.py | 1 + app/scodoc/sco_report.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_page_etud.py b/app/scodoc/sco_page_etud.py index 1f5d572f..2a317add 100644 --- a/app/scodoc/sco_page_etud.py +++ b/app/scodoc/sco_page_etud.py @@ -218,6 +218,7 @@ def fiche_etud(etudid=None): only_to_show=True, ) # Parcours de l'étudiant + last_formsemestre = None inscriptions = etud.inscriptions() info["last_formsemestre_id"] = ( inscriptions[0].formsemestre.id if inscriptions else "" diff --git a/app/scodoc/sco_report.py b/app/scodoc/sco_report.py index 769c202f..75caad14 100644 --- a/app/scodoc/sco_report.py +++ b/app/scodoc/sco_report.py @@ -1115,7 +1115,7 @@ def get_code_cursus_etud( p.append(":R") if ( dec - and s["semestre_id"] == nt.parcours.NB_SEM + and formsemestre.semestre_id == nt.parcours.NB_SEM and code_semestre_validant(dec["code"]) ): p.append(":A")