From 5467ad2437921adc26d1c51c9c1b709de40915d9 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 4 Feb 2022 11:19:01 +0100 Subject: [PATCH] Fix: saisie si aucun etudiant --- app/views/absences.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/absences.py b/app/views/absences.py index a9ec8570b..07f4bfdba 100644 --- a/app/views/absences.py +++ b/app/views/absences.py @@ -496,6 +496,7 @@ def SignaleAbsenceGrSemestre( require_module = sco_preferences.get_preference( "abs_require_module", formsemestre_id ) + sem = sco_formsemestre.do_formsemestre_list({"formsemestre_id": formsemestre_id})[0] etuds = [ sco_etud.get_etud_info(etudid=m["etudid"], filled=True)[0] for m in groups_infos.members @@ -526,9 +527,7 @@ def SignaleAbsenceGrSemestre( if etuds: nt = sco_cache.NotesTableCache.get(formsemestre_id) - sem = sco_formsemestre.do_formsemestre_list( - {"formsemestre_id": formsemestre_id} - )[0] + work_saturday = sco_abs.is_work_saturday() jourdebut = sco_abs.ddmmyyyy(datedebut, work_saturday=work_saturday) jourfin = sco_abs.ddmmyyyy(datefin, work_saturday=work_saturday)