forked from ScoDoc/ScoDoc
ListeAbsEtud: add ampm
This commit is contained in:
parent
db781d71e3
commit
d8a4184547
@ -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&datedebut=%s&datefin=%s&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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user