From 4fda9cb391923ee438f9c1b1031b9b06aec97a88 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 18 Mar 2022 19:31:29 +0100 Subject: [PATCH] code cleaning --- app/comp/bonus_spo.py | 2 +- app/pe/pe_view.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/comp/bonus_spo.py b/app/comp/bonus_spo.py index 306a3e01..16596026 100644 --- a/app/comp/bonus_spo.py +++ b/app/comp/bonus_spo.py @@ -89,7 +89,7 @@ class BonusSport: for m in formsemestre.modimpls_sorted ] ) - if not len(modimpl_mask): + if len(modimpl_mask) == 0: modimpl_mask = np.s_[:] # il n'y a rien, on prend tout donc rien self.modimpls_spo = [ modimpl diff --git a/app/pe/pe_view.py b/app/pe/pe_view.py index 5af1a575..558b4bf8 100644 --- a/app/pe/pe_view.py +++ b/app/pe/pe_view.py @@ -120,7 +120,6 @@ def pe_view_sem_recap( # template fourni via le formulaire Web if footer_tmpl_file: footer_latex = footer_tmpl_file.read().decode("utf-8") - footer_latex = footer_latex else: footer_latex = pe_avislatex.get_code_latex_from_scodoc_preference( formsemestre_id, champ="pe_avis_latex_footer"