diff --git a/app/comp/bonus_spo.py b/app/comp/bonus_spo.py index 306a3e011b..1659602622 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 5af1a57549..558b4bf8bc 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"