ListeAbsEtud: add ampm

This commit is contained in:
IDK 2021-05-01 17:44:06 +02:00
parent db781d71e3
commit d8a4184547

View File

@ -1313,7 +1313,7 @@ class ZAbsences(
if with_evals:
a["exams"] = descr_exams(a)
a["datedmy"] = a["jour"].strftime("%d/%m/%Y")
a["matin_o"] = int(a["matin"])
a["ampm"] = int(a["matin"])
a["matin"] = matin(a["matin"])
index = a["description"].find(")")
if index != -1:
@ -1328,7 +1328,7 @@ class ZAbsences(
a["justlink"] = "<em>justifier</em>"
a["_justlink_target"] = (
"doJustifAbsence?etudid=%s&amp;datedebut=%s&amp;datefin=%s&amp;demijournee=%s"
% (etudid, a["datedmy"], a["datedmy"], a["matin_o"])
% (etudid, a["datedmy"], a["datedmy"], a["ampm"])
)
#
titles = {
@ -1340,6 +1340,8 @@ class ZAbsences(
"motif": "Motif",
}
columns_ids = ["datedmy", "matin"]
if format in ("json", "xml"):
columns_ids += ["jour", "ampm"]
if with_evals:
columns_ids.append("exams")