1
0
forked from ScoDoc/ScoDoc

Fix: edition module

This commit is contained in:
Emmanuel Viennet 2022-02-26 20:35:34 +01:00
parent c0494d8d71
commit 40f823ee7c

View File

@ -551,7 +551,11 @@ def module_edit(module_id=None):
# ne propose pas SAE et Ressources, sauf si déjà de ce type...
module_types = (
set(scu.ModuleType) - {scu.ModuleType.RESSOURCE, scu.ModuleType.SAE}
) | {a_module.module_type or scu.ModuleType.STANDARD}
) | {
scu.ModuleType(a_module.module_type)
if a_module.module_type
else scu.ModuleType.STANDARD
}
descr = [
(