Export Apogée: corrige cas sans décisions de jury

This commit is contained in:
Emmanuel Viennet 2024-06-18 21:00:56 +02:00
parent af557f9c93
commit e877e04cc6

View File

@ -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: