diff --git a/app/scodoc/sco_apogee_csv.py b/app/scodoc/sco_apogee_csv.py index 80d1e8e43..2bf9685b6 100644 --- a/app/scodoc/sco_apogee_csv.py +++ b/app/scodoc/sco_apogee_csv.py @@ -569,8 +569,7 @@ class ApoEtud(dict): # prend le plus récent avec décision for formsemestre in cur_formsemestres: res: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre) - has_decision = res.etud_has_decision(self.etud.id) - if has_decision: + if apo_data.export_res_sdj or res.etud_has_decision(self.etud.id): cur_formsemestre = formsemestre self.cur_res = res break @@ -639,7 +638,7 @@ class ApoEtud(dict): has_decision = res.etud_has_decision(self.etud.id) else: has_decision = res.get_etud_decision_sem(self.etud.id) - if has_decision: + if has_decision or apo_data.export_res_sdj: autre_formsemestre = formsemestre break if autre_formsemestre is None: