diff --git a/app/scodoc/sco_evaluations.py b/app/scodoc/sco_evaluations.py index f6beeceb5..e05d64f71 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(