1
0
forked from ScoDoc/ScoDoc

Ajout detection bug cache coef module

This commit is contained in:
Emmanuel Viennet 2022-09-08 10:28:12 +02:00
parent a428fcedfa
commit 65d00d4754
2 changed files with 6 additions and 2 deletions

View File

@ -447,6 +447,12 @@ def moduleimpl_is_conforme(
# il arrive (#bug) que le cache ne soit pas à jour...
sco_cache.invalidate_formsemestre()
raise ScoBugCatcher("moduleimpl_is_conforme: nb ue incoherent")
if moduleimpl.module_id not in modules_coefficients:
# soupçon de bug cache coef ?
sco_cache.invalidate_formsemestre()
raise ScoBugCatcher("Erreur 454 - merci de ré-essayer")
module_evals_poids = evals_poids.transpose().sum(axis=1) != 0
return all((modules_coefficients[moduleimpl.module_id] != 0).eq(module_evals_poids))

View File

@ -79,8 +79,6 @@ from app.scodoc.scolog import logdb
from app.scodoc.sco_exceptions import (
AccessDenied,
ScoBugCatcher,
ScoException,
ScoValueError,
ScoInvalidIdType,
)