1
0
forked from ScoDoc/ScoDoc

Fix export Apo BUT/Simpair isolé

This commit is contained in:
Emmanuel Viennet 2023-04-17 12:10:17 +02:00
parent 2ffcc503cb
commit b2296d94df
2 changed files with 8 additions and 4 deletions

View File

@ -476,8 +476,10 @@ class ApoEtud(dict):
# #
return None # element Apogee non trouvé dans ce semestre return None # element Apogee non trouvé dans ce semestre
def comp_elt_semestre(self, nt, decision, etudid): def comp_elt_semestre(self, nt: NotesTableCompat, decision: dict, etudid: int):
"""Calcul résultat apo semestre""" """Calcul résultat apo semestre.
Toujours vide pour en BUT/APC.
"""
if self.is_apc: if self.is_apc:
# pas de code semestre en APC ! # pas de code semestre en APC !
return dict(N="", B=20, J="", R="", M="") return dict(N="", B=20, J="", R="", M="")
@ -522,7 +524,9 @@ class ApoEtud(dict):
cur_formsemestre = FormSemestre.query.get_or_404(cur_sem["formsemestre_id"]) cur_formsemestre = FormSemestre.query.get_or_404(cur_sem["formsemestre_id"])
cur_nt: NotesTableCompat = res_sem.load_formsemestre_results(cur_formsemestre) cur_nt: NotesTableCompat = res_sem.load_formsemestre_results(cur_formsemestre)
if not self.is_apc: if self.is_apc:
cur_decision = {} # comp_elt_semestre sera vide.
else:
cur_decision = cur_nt.get_etud_decision_sem(etudid) cur_decision = cur_nt.get_etud_decision_sem(etudid)
if not cur_decision: if not cur_decision:
# pas de decision => pas de résultat annuel # pas de decision => pas de résultat annuel

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.4.71" SCOVERSION = "9.4.72"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"