forked from ScoDoc/ScoDoc
Fix formsemestre_description #632
This commit is contained in:
parent
72dfcc086d
commit
0f78a1288d
@ -705,8 +705,14 @@ def formsemestre_description_table(
|
|||||||
evals = nt.get_mod_evaluation_etat_list(modimpl.id)
|
evals = nt.get_mod_evaluation_etat_list(modimpl.id)
|
||||||
evals.reverse() # ordre chronologique
|
evals.reverse() # ordre chronologique
|
||||||
# Ajoute etat:
|
# Ajoute etat:
|
||||||
|
eval_rows = []
|
||||||
for eval_dict in evals:
|
for eval_dict in evals:
|
||||||
e = eval_dict.copy()
|
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_order"] = e["jour"].isoformat()
|
||||||
e["jour"] = e["jour"].strftime("%d/%m/%Y") if e["jour"] else ""
|
e["jour"] = e["jour"].strftime("%d/%m/%Y") if e["jour"] else ""
|
||||||
e["UE"] = l["UE"]
|
e["UE"] = l["UE"]
|
||||||
@ -734,8 +740,9 @@ def formsemestre_description_table(
|
|||||||
e[f"ue_{ue_id}"] = poids or ""
|
e[f"ue_{ue_id}"] = poids or ""
|
||||||
e[f"_ue_{ue_id}_class"] = "poids"
|
e[f"_ue_{ue_id}_class"] = "poids"
|
||||||
e[f"_ue_{ue_id}_help"] = "poids vers l'UE"
|
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}
|
sums = {"_css_row_class": "moyenne sortbottom", "ects": sum_ects, "Coef.": sum_coef}
|
||||||
rows.append(sums)
|
rows.append(sums)
|
||||||
|
Loading…
Reference in New Issue
Block a user