From 832a25f7dcaad280e1bd3062b4aeacf166674387 Mon Sep 17 00:00:00 2001 From: leonard_montalbano Date: Wed, 1 Jun 2022 16:05:56 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20de=20l'exemple=20de=20r=C3=A9sultat=20p?= =?UTF-8?q?our=20etat=5Fevals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/formsemestres.py | 45 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/app/api/formsemestres.py b/app/api/formsemestres.py index 15d31491..05a106b1 100644 --- a/app/api/formsemestres.py +++ b/app/api/formsemestres.py @@ -483,7 +483,50 @@ def etat_evals(formsemestre_id: int): formsemestre_id : l'id d'un semestre Exemple de résultat : - + { + "RT1.1": [ + { + "id": 1, + "titre": "Initiation aux réseaux informatiques", + "evaluations": [ + { + "id": 1, + "description": null, + "datetime_epreuve": null, + "heure_fin": "09:00:00", + "comptee": "oui", + "inscrits": 16, + "manquantes": 0, + "ABS": 0, + "ATT": 0, + "EXC": 0, + "saisie_notes": { + "datetime_debut": "Wed, 01 Jun 2022 10:37:59 GMT", + "datetime_fin": "Wed, 01 Jun 2022 13:18:09 GMT", + "datetime_mediane": "Wed, 01 Jun 2022 12:38:57 GMT" + } + }, + { + "id": 22, + "description": null, + "datetime_epreuve": "Tue, 31 May 2022 00:00:00 GMT", + "heure_fin": "08:00:00", + "comptee": "oui", + "inscrits": 16, + "manquantes": 0, + "ABS": 0, + "ATT": 0, + "EXC": 0, + "saisie_notes": { + "datetime_debut": "Wed, 01 Jun 2022 12:04:19 GMT", + "datetime_fin": "Wed, 01 Jun 2022 12:04:36 GMT", + "datetime_mediane": "Wed, 01 Jun 2022 14:04:27 GMT" + } + }, + ] + }, + ] + } """ # Récupération du semestre formsemestre = FormSemestre.query.get_or_404(formsemestre_id)