Skip to content
Snippets Groups Projects
Commit b6344c27 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix: edition ects UE

parent 9be8db09
Branches
No related tags found
No related merge requests found
...@@ -120,7 +120,9 @@ class UniteEns(models.ScoDocModel): ...@@ -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
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"Infos sur version ScoDoc" "Infos sur version ScoDoc"
SCOVERSION = "9.7.47" SCOVERSION = "9.7.48"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment