forked from ScoDoc/ScoDoc
Fix regression in formation_export
This commit is contained in:
parent
d5a5c66390
commit
ca1ac28f2e
@ -222,7 +222,7 @@ def formation_export(
|
||||
"""Get a formation, with UE, matieres, modules
|
||||
in desired format
|
||||
"""
|
||||
if fmt not in ("xml", "json"):
|
||||
if fmt not in (None, "xml", "json"):
|
||||
raise ScoValueError("Format invalide")
|
||||
formation = Formation.get_formation(formation_id)
|
||||
f_dict = formation_export_dict(
|
||||
|
Loading…
Reference in New Issue
Block a user