From 13a8184601f7ed24a0c58eefe231cffdd7620938 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 21 Apr 2022 14:35:49 +0200 Subject: [PATCH] oups: fix route --- app/views/notes.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/app/views/notes.py b/app/views/notes.py index 2a6b76b12..061055f88 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -481,11 +481,16 @@ sco_publish( Permission.ScoView, methods=["GET", "POST"], ) -sco_publish( - "/formation_table_recap", - sco_formation_recap.formation_table_recap, - Permission.ScoView, -) + + +@bp.route("/formation_table_recap") +@scodoc +@permission_required(Permission.ScoView) +@scodoc7func +def formation_table_recap(formation_id, format="html"): + return sco_formation_recap.formation_table_recap(formation_id, format="html") + + sco_publish( "/export_recap_formations_annee_scolaire", sco_formation_recap.export_recap_formations_annee_scolaire, @@ -2459,6 +2464,7 @@ def formsemestre_set_apo_etapes(): ScolarNews.add( typ=ScolarNews.NEWS_APO, text=f"Modification code Apogée du semestre {formsemestre.titre_annee()})", + max_frequency=10 * 60, ) return ("", 204) @@ -2480,6 +2486,7 @@ def formsemestre_set_elt_annee_apo(): ScolarNews.add( typ=ScolarNews.NEWS_APO, text=f"Modification code Apogée du semestre {formsemestre.titre_annee()})", + max_frequency=10 * 60, ) return ("", 204) @@ -2501,6 +2508,7 @@ def formsemestre_set_elt_sem_apo(): ScolarNews.add( typ=ScolarNews.NEWS_APO, text=f"Modification code Apogée du semestre {formsemestre.titre_annee()})", + max_frequency=10 * 60, ) return ("", 204) @@ -2522,6 +2530,7 @@ def ue_set_apo(): ScolarNews.add( typ=ScolarNews.NEWS_FORM, text=f"Modification code Apogée d'UE dans la formation {ue.formation.titre} ({ue.formation.acronyme})", + max_frequency=10 * 60, ) return ("", 204) @@ -2543,6 +2552,7 @@ def module_set_apo(): ScolarNews.add( typ=ScolarNews.NEWS_FORM, text=f"Modification code Apogée d'UE dans la formation {mod.formation.titre} ({mod.formation.acronyme})", + max_frequency=10 * 60, ) return ("", 204)