From a9d30def6ba2f62ba6a068e6a1dcc91775f161e1 Mon Sep 17 00:00:00 2001 From: Iziram Date: Fri, 17 Nov 2023 11:36:15 +0100 Subject: [PATCH] Assiduites : bug fix visu_assi.j2 --- app/templates/assiduites/pages/visu_assi.j2 | 5 +++-- app/views/assiduites.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/templates/assiduites/pages/visu_assi.j2 b/app/templates/assiduites/pages/visu_assi.j2 index 71585f8d..d2679ad7 100644 --- a/app/templates/assiduites/pages/visu_assi.j2 +++ b/app/templates/assiduites/pages/visu_assi.j2 @@ -3,6 +3,7 @@ {% block scripts %} {{ super() }} + {% endblock %} {% block app_content %} @@ -31,8 +32,8 @@ const group_ids = "{{group_ids}}"; function stats() { - const deb = document.querySelector('#stats_date_debut').value; - const fin = document.querySelector('#stats_date_fin').value; + const deb = Date.fromFRA(document.querySelector('#stats_date_debut').value); + const fin = Date.fromFRA(document.querySelector('#stats_date_fin').value); location.href = `VisualisationAssiduitesGroupe?group_ids=${group_ids}&date_debut=${deb}&date_fin=${fin}`; } diff --git a/app/views/assiduites.py b/app/views/assiduites.py index ce7bfdf4..9d637248 100644 --- a/app/views/assiduites.py +++ b/app/views/assiduites.py @@ -1019,7 +1019,7 @@ def visu_assi_group(): short=False, ), date_debut=_dateiso_to_datefr(dates["debut"]), - date_fin=_dateiso_to_datefr(dates["debut"]), + date_fin=_dateiso_to_datefr(dates["fin"]), gr_tit=gr_tit, group_ids=request.args.get("group_ids", None), sco=ScoData(formsemestre=groups_infos.get_formsemestre()),