From b653cb0218df3511f5fbc56ed5d807160b289808 Mon Sep 17 00:00:00 2001
From: Emmanuel Viennet <emmanuel.viennet@gmail.com>
Date: Thu, 21 Apr 2022 14:33:11 +0200
Subject: [PATCH] max freq. notif. modif. codes Apo
---
app/scodoc/sco_formation_recap.py | 3 ++-
app/scodoc/sco_synchro_etuds.py | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/scodoc/sco_formation_recap.py b/app/scodoc/sco_formation_recap.py
index fc594bcc7..fedf7a489 100644
--- a/app/scodoc/sco_formation_recap.py
+++ b/app/scodoc/sco_formation_recap.py
@@ -30,6 +30,7 @@
import io
from zipfile import ZipFile, BadZipfile
+from flask import Response
from flask import send_file, url_for
from flask import g, request
from flask_login import current_user
@@ -44,7 +45,7 @@ import app.scodoc.sco_utils as scu
# ---- Table recap formation
-def formation_table_recap(formation_id, format="html"):
+def formation_table_recap(formation_id, format="html") -> Response:
"""Table recapitulant formation."""
T = []
formation = Formation.query.get_or_404(formation_id)
diff --git a/app/scodoc/sco_synchro_etuds.py b/app/scodoc/sco_synchro_etuds.py
index 6483ffcff..67ac5a6c7 100644
--- a/app/scodoc/sco_synchro_etuds.py
+++ b/app/scodoc/sco_synchro_etuds.py
@@ -704,6 +704,7 @@ def do_import_etuds_from_portal(sem, a_importer, etudsapo_ident):
typ=ScolarNews.NEWS_INSCR,
text="Import Apogée de %d étudiants en " % len(created_etudids),
obj=sem["formsemestre_id"],
+ max_frequency=10 * 60, # 10'
)
--
GitLab