From: PASCALE NOYRET Date: Wed, 19 Jan 2022 14:05:40 +0000 (+0100) Subject: repetable sur les facts X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=341d640091e860da96ce1673d410fec65c9de6fe;p=tools%2Feficas.git repetable sur les facts --- diff --git a/Ihm/I_MCLIST.py b/Ihm/I_MCLIST.py index 135aa698..57172a25 100644 --- a/Ihm/I_MCLIST.py +++ b/Ihm/I_MCLIST.py @@ -73,11 +73,12 @@ class MCList: def getDicoForFancy(self): #print ('MCList getDicoObjetsCompletsPourTree pour ', self) listeDict=[] - facultatif=1 + nbFactDejaLa=len(self.data) for i in self.data: dico = i.getDicoForFancy() - if facultatif > i.definition.min : dico['statut']='f' - facultatif+=1 + if nbFactDejaLa > i.definition.min : dico['statut']='f' + if nbFactDejaLa < i.definition.min and i == nbFactDejaLa : dico['repetable'] = 1 + else : dico['repetable'] = 0 listeDict.append(dico) return listeDict