1
0
forked from ScoDoc/ScoDoc

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 # prend le plus récent avec décision
for formsemestre in cur_formsemestres: for formsemestre in cur_formsemestres:
res: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre) res: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre)
has_decision = res.etud_has_decision(self.etud.id) if apo_data.export_res_sdj or res.etud_has_decision(self.etud.id):
if has_decision:
cur_formsemestre = formsemestre cur_formsemestre = formsemestre
self.cur_res = res self.cur_res = res
break break
@ -639,7 +638,7 @@ class ApoEtud(dict):
has_decision = res.etud_has_decision(self.etud.id) has_decision = res.etud_has_decision(self.etud.id)
else: else:
has_decision = res.get_etud_decision_sem(self.etud.id) 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 autre_formsemestre = formsemestre
break break
if autre_formsemestre is None: if autre_formsemestre is None: