Fix formsemestre_description #632
This commit is contained in:
parent
866efbed92
commit
78f0a70b94
@ -705,8 +705,14 @@ def formsemestre_description_table(
|
||||
evals = nt.get_mod_evaluation_etat_list(modimpl.id)
|
||||
evals.reverse() # ordre chronologique
|
||||
# Ajoute etat:
|
||||
eval_rows = []
|
||||
for eval_dict in evals:
|
||||
e = eval_dict.copy()
|
||||
e["_description_target"] = url_for(
|
||||
"notes.evaluation_listenotes",
|
||||
scodoc_dept=g.scodoc_dept,
|
||||
evaluation_id=e["evaluation_id"],
|
||||
)
|
||||
e["_jour_order"] = e["jour"].isoformat()
|
||||
e["jour"] = e["jour"].strftime("%d/%m/%Y") if e["jour"] else ""
|
||||
e["UE"] = l["UE"]
|
||||
@ -734,8 +740,9 @@ def formsemestre_description_table(
|
||||
e[f"ue_{ue_id}"] = poids or ""
|
||||
e[f"_ue_{ue_id}_class"] = "poids"
|
||||
e[f"_ue_{ue_id}_help"] = "poids vers l'UE"
|
||||
eval_rows.append(e)
|
||||
|
||||
rows += evals
|
||||
rows += eval_rows
|
||||
|
||||
sums = {"_css_row_class": "moyenne sortbottom", "ects": sum_ects, "Coef.": sum_coef}
|
||||
rows.append(sums)
|
||||
|
Loading…
Reference in New Issue
Block a user