diff --git a/app/models/moduleimpls.py b/app/models/moduleimpls.py index ea4374e6..38f95c57 100644 --- a/app/models/moduleimpls.py +++ b/app/models/moduleimpls.py @@ -15,6 +15,7 @@ from app.models import UniteEns, Identite import app.scodoc.notesdb as ndb from app.scodoc import sco_evaluation_db +from app.scodoc import sco_utils as scu class ModuleImpl(db.Model): @@ -68,7 +69,10 @@ class ModuleImpl(db.Model): """true si les poids des évaluations du module permettent de satisfaire les coefficients du PN. """ - if not self.module.formation.get_parcours().APC_SAE: + if not self.module.formation.get_parcours().APC_SAE or ( + self.module.module_type != scu.ModuleType.RESSOURCE + and self.module.module_type != scu.ModuleType.SAE + ): return True from app.comp import moy_mod diff --git a/app/scodoc/sco_moduleimpl_status.py b/app/scodoc/sco_moduleimpl_status.py index 41daf04d..6d07d4e4 100644 --- a/app/scodoc/sco_moduleimpl_status.py +++ b/app/scodoc/sco_moduleimpl_status.py @@ -157,7 +157,7 @@ def moduleimpl_evaluation_menu(evaluation_id, nbnotes=0): def _ue_coefs_html(coefs_descr) -> str: """ """ - max_coef = max([x[1] for x in coefs_descr]) + max_coef = max([x[1] for x in coefs_descr]) if coefs_descr else 1.0 H = """