From ff0437d8448f1ab2f1aa902e564e96ce646716b2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 31 May 2022 14:15:21 +0200 Subject: [PATCH] lint --- app/scodoc/sco_edit_ue.py | 2 +- sco_version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_edit_ue.py b/app/scodoc/sco_edit_ue.py index 4c0a8ef5..a0f4ff74 100644 --- a/app/scodoc/sco_edit_ue.py +++ b/app/scodoc/sco_edit_ue.py @@ -147,7 +147,7 @@ def can_delete_ue(ue: UniteEns) -> bool: et n'a pas de module rattachés """ # "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): diff --git a/sco_version.py b/sco_version.py index d3dd51f2..3de1255f 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.2.23" +SCOVERSION = "9.2.24" SCONAME = "ScoDoc"