Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit b699add4c4 - Show all commits

View File

@ -577,7 +577,7 @@ def formsemestre_evaluations_delai_correction(formsemestre_id, fmt="html"):
continue continue
date_first_complete = evaluation_date_first_completion(e.id) date_first_complete = evaluation_date_first_completion(e.id)
if date_first_complete and e.date_fin: 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: else:
delai_correction = None delai_correction = None
@ -591,7 +591,7 @@ def formsemestre_evaluations_delai_correction(formsemestre_id, fmt="html"):
"_jour_target": url_for( "_jour_target": url_for(
"notes.evaluation_listenotes", "notes.evaluation_listenotes",
scodoc_dept=g.scodoc_dept, scodoc_dept=g.scodoc_dept,
evaluation_id=e["evaluation_id"], evaluation_id=e.id,
), ),
"module_code": e.moduleimpl.module.code, "module_code": e.moduleimpl.module.code,
"_module_code_target": url_for( "_module_code_target": url_for(