From 351f6dea7870bbc593563bdf91ed00a00511cfca Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 13 May 2019 22:00:50 +0200 Subject: [PATCH] =?UTF-8?q?Protection=20contre=20tarifs=20sp=C3=A9ciaux=20?= =?UTF-8?q?mal=20saisis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index 78b41cf7..d12caa95 100644 --- a/functions.py +++ b/functions.py @@ -591,7 +591,7 @@ def GetEmail(famille): def GetTarifsFamilleFields(famille): - return [(tarif.label.lower().replace(" ", "_"), tarif.label if (famille and (famille.tarifs & (1 << tarif.idx))) else "") for tarif in database.creche.tarifs_speciaux] + return [(tarif.label.lower().replace(" ", "_"), tarif.label if (famille and (famille.tarifs & (1 << tarif.idx))) else "") for tarif in database.creche.tarifs_speciaux if tarif.label] def GetParentFields(parent, index=None):