From dd9351ca6e18fb9fbccbaff38291dd1ca91214c0 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 19 Apr 2022 23:52:52 +0200 Subject: [PATCH] =?UTF-8?q?s=C3=A9lection=20du=20jour=20de=20la=20semaine?= =?UTF-8?q?=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formsemestre_status.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index 83314cf85..98c67431b 100644 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -28,6 +28,7 @@ """Tableau de bord semestre """ +import datetime from flask import current_app from flask import g from flask import request @@ -760,8 +761,7 @@ def _make_listes_sem(sem, with_absences=True): ) formsemestre_id = sem["formsemestre_id"] - - # calcule dates 1er jour semaine pour absences + weekday = datetime.datetime.today().weekday() try: if with_absences: first_monday = sco_abs.ddmmyyyy(sem["date_debut"]).prev_monday() @@ -780,8 +780,8 @@ def _make_listes_sem(sem, with_absences=True):