Fix: edition ects UE

This commit is contained in:
Emmanuel Viennet 2024-12-18 15:00:47 +01:00
parent 9be8db0941
commit b6344c27a8
2 changed files with 4 additions and 2 deletions

View File

@ -120,7 +120,9 @@ class UniteEns(models.ScoDocModel):
if "is_external" in args: if "is_external" in args:
args["is_external"] = scu.to_bool(args["is_external"]) args["is_external"] = scu.to_bool(args["is_external"])
if "ects" in args: if "ects" in args:
args["ects"] = None if args["ects"] is None else float(args["ects"]) if isinstance(args["ects"], str):
ects = args["ects"].strip()
args["ects"] = float(ects) if ects else None
return args return args

View File

@ -3,7 +3,7 @@
"Infos sur version ScoDoc" "Infos sur version ScoDoc"
SCOVERSION = "9.7.47" SCOVERSION = "9.7.48"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"