forked from ScoDoc/DocScoDoc
lint
This commit is contained in:
parent
596a45a90e
commit
ff0437d844
@ -147,7 +147,7 @@ def can_delete_ue(ue: UniteEns) -> bool:
|
|||||||
et n'a pas de module rattachés
|
et n'a pas de module rattachés
|
||||||
"""
|
"""
|
||||||
# "pas un seul module de cette UE n'a de modimpl...""
|
# "pas un seul module de cette UE n'a de modimpl...""
|
||||||
return (not len(ue.modules.all())) and not any(m.modimpls.all() for m in ue.modules)
|
return (ue.modules.count() == 0) and not any(m.modimpls.all() for m in ue.modules)
|
||||||
|
|
||||||
|
|
||||||
def do_ue_delete(ue_id, delete_validations=False, force=False):
|
def do_ue_delete(ue_id, delete_validations=False, force=False):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.2.23"
|
SCOVERSION = "9.2.24"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user