Commit f533c39e authored by Sli's avatar Sli

api: fix uv manager acquisition if uv is only available in spring

parent 86bc491d
Pipeline #2112 passed with stage
in 32 minutes and 23 seconds
......@@ -105,7 +105,10 @@ def make_clean_uv(short_uv, full_uv):
res["hours_{}".format(activity["code"])] += activity["nbh"] // 60
# wrong if the manager changes depending on the semester
res["manager"] = full_uv["automne"]["responsable"]
semester = full_uv.get("automne", None)
if not semester:
semester = full_uv.get("printemps", {})
res["manager"] = semester.get("responsable", "")
res["title"] = full_uv["libelle"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment