From 6de3d32c25bbf07e64e9cd94856c6d819e9ae5a2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 15 Mar 2022 22:32:03 +0100 Subject: [PATCH] Fixes #338 --- app/scodoc/sco_abs_views.py | 3 ++- app/scodoc/sco_utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_abs_views.py b/app/scodoc/sco_abs_views.py index 686d589d7..1c4ff8fe5 100644 --- a/app/scodoc/sco_abs_views.py +++ b/app/scodoc/sco_abs_views.py @@ -724,6 +724,7 @@ def CalAbs(etudid, sco_year=None): anneescolaire = int(scu.AnneeScolaire(sco_year)) datedebut = str(anneescolaire) + "-08-01" datefin = str(anneescolaire + 1) + "-07-31" + annee_courante = scu.AnneeScolaire() nbabs = sco_abs.count_abs(etudid=etudid, debut=datedebut, fin=datefin) nbabsjust = sco_abs.count_abs_just(etudid=etudid, debut=datedebut, fin=datefin) events = [] @@ -776,7 +777,7 @@ def CalAbs(etudid, sco_year=None): """Année scolaire %s-%s""" % (anneescolaire, anneescolaire + 1), """  Changer année: