From 45d310627212e851980d6c0bee392b6693f96270 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 11 Jul 2022 18:31:58 +0200 Subject: [PATCH] comments --- app/comp/res_sem.py | 2 +- app/scodoc/sco_recapcomplet.py | 1 + app/views/notes.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/comp/res_sem.py b/app/comp/res_sem.py index e27a157c1..0897da015 100644 --- a/app/comp/res_sem.py +++ b/app/comp/res_sem.py @@ -47,7 +47,7 @@ def load_formsemestre_results(formsemestre: FormSemestre) -> ResultatsSemestre: def load_formsemestre_validations(formsemestre: FormSemestre) -> ValidationsSemestre: """Charge les résultats de jury de ce semestre. Search in local cache (g.formsemestre_result_cache) - If not in cache, build it and cache it. + If not in cache, build it and cache it (in g). """ if not hasattr(g, "formsemestre_validation_cache"): g.formsemestre_validations_cache = {} # pylint: disable=C0237 diff --git a/app/scodoc/sco_recapcomplet.py b/app/scodoc/sco_recapcomplet.py index aad0b96b0..96378587b 100644 --- a/app/scodoc/sco_recapcomplet.py +++ b/app/scodoc/sco_recapcomplet.py @@ -386,6 +386,7 @@ def gen_formsemestre_recapcomplet_html( table_html = sco_cache.TableRecapWithEvalsCache.get(formsemestre.id) else: table_html = sco_cache.TableRecapCache.get(formsemestre.id) + # en mode jury ne cache pas la table html if mode_jury or (table_html is None): table_html = _gen_formsemestre_recapcomplet_html( formsemestre, diff --git a/app/views/notes.py b/app/views/notes.py index 7bb9b027c..fe1774a73 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -2664,6 +2664,7 @@ def formsemestre_jury_but_erase(formsemestre_id: int, etudid: int = None): deca = jury_but.DecisionsProposeesAnnee(etud, formsemestre) deca.erase() db.session.commit() + log(f"formsemestre_jury_but_erase({formsemestre_id}, {etudid})") flash("décisions de jury effacées") return redirect(dest_url)