forked from ScoDoc/ScoDoc
Fix bugs in formsemestre_evaluations_delai_correction (contrib. C. Martin).
This commit is contained in:
parent
a04e53d6e6
commit
b699add4c4
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user