From 86c12dee08d973bab9725f2fee07a7993c49fa63 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 8 Feb 2024 16:26:50 +0100 Subject: [PATCH] complete previous commit --- app/scodoc/sco_assiduites.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_assiduites.py b/app/scodoc/sco_assiduites.py index 40da4a9f..23252ddb 100644 --- a/app/scodoc/sco_assiduites.py +++ b/app/scodoc/sco_assiduites.py @@ -516,12 +516,9 @@ def filter_by_formsemestre( .filter(FormSemestreInscription.formsemestre_id == formsemestre.id) ) - form_date_debut = formsemestre.date_debut + timedelta(days=1) - form_date_fin = formsemestre.date_fin + timedelta(days=1) - collection_result = collection_result.filter( - collection_class.date_debut <= form_date_fin - ).filter(collection_class.date_fin >= form_date_debut) + collection_class.date_debut <= formsemestre.date_fin + ).filter(collection_class.date_fin >= formsemestre.date_debut) return collection_result