forked from ScoDoc/ScoDoc
Fix export Apo BUT/Simpair isolé
This commit is contained in:
parent
2ffcc503cb
commit
b2296d94df
@ -476,8 +476,10 @@ class ApoEtud(dict):
|
||||
#
|
||||
return None # element Apogee non trouvé dans ce semestre
|
||||
|
||||
def comp_elt_semestre(self, nt, decision, etudid):
|
||||
"""Calcul résultat apo semestre"""
|
||||
def comp_elt_semestre(self, nt: NotesTableCompat, decision: dict, etudid: int):
|
||||
"""Calcul résultat apo semestre.
|
||||
Toujours vide pour en BUT/APC.
|
||||
"""
|
||||
if self.is_apc:
|
||||
# pas de code semestre en APC !
|
||||
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_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)
|
||||
if not cur_decision:
|
||||
# pas de decision => pas de résultat annuel
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.4.71"
|
||||
SCOVERSION = "9.4.72"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user