From 1209cf4ef3a8475fd5c82ceadbc86a409dcf48de Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 10 May 2022 22:40:00 +0200 Subject: [PATCH] formatage --- app/scodoc/sco_formsemestre_exterieurs.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/app/scodoc/sco_formsemestre_exterieurs.py b/app/scodoc/sco_formsemestre_exterieurs.py index 9dfcbbb6..0da85f2c 100644 --- a/app/scodoc/sco_formsemestre_exterieurs.py +++ b/app/scodoc/sco_formsemestre_exterieurs.py @@ -262,7 +262,7 @@ def formsemestre_ext_edit_ue_validations(formsemestre_id, etudid): ) -def _make_page(etud, sem, tf, message=""): +def _make_page(etud: dict, sem, tf, message="") -> list: formsemestre = FormSemestre.query.get_or_404(sem["formsemestre_id"]) nt: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre) moy_gen = nt.get_etud_moy_gen(etud["etudid"]) @@ -277,21 +277,20 @@ def _make_page(etud, sem, tf, message=""):

""" % etud, - """

La moyenne de ce semestre serait: - %s / 20 + f"""

La moyenne de ce semestre serait: + {moy_gen} / 20

- """ - % moy_gen, + """, '
', tf[1], "
", - """
- - retour au bulletin de notes -
- """ - % (sem["formsemestre_id"], etud["etudid"]), + f"""
+ retour au bulletin de notes +
+ """, html_sco_header.sco_footer(), ] return H