forked from ScoDoc/DocScoDoc
comments
This commit is contained in:
parent
60f5bdfc60
commit
45d3106272
@ -47,7 +47,7 @@ def load_formsemestre_results(formsemestre: FormSemestre) -> ResultatsSemestre:
|
|||||||
def load_formsemestre_validations(formsemestre: FormSemestre) -> ValidationsSemestre:
|
def load_formsemestre_validations(formsemestre: FormSemestre) -> ValidationsSemestre:
|
||||||
"""Charge les résultats de jury de ce semestre.
|
"""Charge les résultats de jury de ce semestre.
|
||||||
Search in local cache (g.formsemestre_result_cache)
|
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"):
|
if not hasattr(g, "formsemestre_validation_cache"):
|
||||||
g.formsemestre_validations_cache = {} # pylint: disable=C0237
|
g.formsemestre_validations_cache = {} # pylint: disable=C0237
|
||||||
|
@ -386,6 +386,7 @@ def gen_formsemestre_recapcomplet_html(
|
|||||||
table_html = sco_cache.TableRecapWithEvalsCache.get(formsemestre.id)
|
table_html = sco_cache.TableRecapWithEvalsCache.get(formsemestre.id)
|
||||||
else:
|
else:
|
||||||
table_html = sco_cache.TableRecapCache.get(formsemestre.id)
|
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):
|
if mode_jury or (table_html is None):
|
||||||
table_html = _gen_formsemestre_recapcomplet_html(
|
table_html = _gen_formsemestre_recapcomplet_html(
|
||||||
formsemestre,
|
formsemestre,
|
||||||
|
@ -2664,6 +2664,7 @@ def formsemestre_jury_but_erase(formsemestre_id: int, etudid: int = None):
|
|||||||
deca = jury_but.DecisionsProposeesAnnee(etud, formsemestre)
|
deca = jury_but.DecisionsProposeesAnnee(etud, formsemestre)
|
||||||
deca.erase()
|
deca.erase()
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
log(f"formsemestre_jury_but_erase({formsemestre_id}, {etudid})")
|
||||||
flash("décisions de jury effacées")
|
flash("décisions de jury effacées")
|
||||||
return redirect(dest_url)
|
return redirect(dest_url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user