From c40c806c639ded333b1f1d622f4d56378ef23f34 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 16 Aug 2021 22:41:09 +0200 Subject: [PATCH] Fix absences/cal --- app/scodoc/sco_abs.py | 2 +- app/scodoc/sco_abs_views.py | 17 ++++++++++------- app/scodoc/sco_formsemestre_status.py | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/app/scodoc/sco_abs.py b/app/scodoc/sco_abs.py index 567a1c403..323a1e1d8 100644 --- a/app/scodoc/sco_abs.py +++ b/app/scodoc/sco_abs.py @@ -955,7 +955,7 @@ def MonthTableBody( % (bgcolor, weekclass, attrs, d, day) ) cc = [] - for morning in (1, 0): + for morning in (True, False): color = None legend = "" href = "" diff --git a/app/scodoc/sco_abs_views.py b/app/scodoc/sco_abs_views.py index aa36e3fc4..9088a0efe 100644 --- a/app/scodoc/sco_abs_views.py +++ b/app/scodoc/sco_abs_views.py @@ -74,7 +74,8 @@ def doSignaleAbsence( """ etud = sco_etud.get_etud_info(filled=1, etudid=etudid, REQUEST=REQUEST)[0] etudid = etud["etudid"] - + if not moduleimpl_id: + moduleimpl_id = None description_abs = description dates = sco_abs.DateRangeISO(context, datedebut, datefin) nbadded = 0 @@ -186,7 +187,7 @@ def SignaleAbsenceEtud(context, REQUEST=None): # etudid implied menu_module = """