From b699add4c43b539bc81b7ba19033208f48564a27 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 6 Oct 2023 15:57:54 +0200 Subject: [PATCH] Fix bugs in formsemestre_evaluations_delai_correction (contrib. C. Martin). --- app/scodoc/sco_evaluations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_evaluations.py b/app/scodoc/sco_evaluations.py index f6beeceb59..e05d64f717 100644 --- a/app/scodoc/sco_evaluations.py +++ b/app/scodoc/sco_evaluations.py @@ -577,7 +577,7 @@ def formsemestre_evaluations_delai_correction(formsemestre_id, fmt="html"): continue date_first_complete = evaluation_date_first_completion(e.id) if date_first_complete and e.date_fin: - delai_correction = (date_first_complete.date() - e.date_fin).days + delai_correction = (date_first_complete.date() - e.date_fin.date()).days else: delai_correction = None @@ -591,7 +591,7 @@ def formsemestre_evaluations_delai_correction(formsemestre_id, fmt="html"): "_jour_target": url_for( "notes.evaluation_listenotes", scodoc_dept=g.scodoc_dept, - evaluation_id=e["evaluation_id"], + evaluation_id=e.id, ), "module_code": e.moduleimpl.module.code, "_module_code_target": url_for(