diff --git a/gestion/tools/liste_adh.py b/gestion/tools/liste_adh.py index ec2924e7..8a8c1f2a 100755 --- a/gestion/tools/liste_adh.py +++ b/gestion/tools/liste_adh.py @@ -26,17 +26,13 @@ for bat in bats + '?' : # remplissage de la liste ######################### -# les batiments -for bat in bats : - adhs = db.search( 'chbre=%s*&paiement=ok' % bat )['adherent'] - for adh in adhs : - liste[bat].append( u'%s %s' % ( adh.nom(), adh.prenom() ) ) - # les extérieurs adhs = db.search( 'paiement=ok&etudes!=Pers' )['adherent'] for adh in adhs : - if not adh.chbre()[0] in bats : - liste['?'].append( u'%s %s' % ( adh.nom(), adh.prenom() ) ) + bat = adh.chbre()[0] + if not bat in bats : + bat = '?' + liste[bat].append( u'%s %s' % ( adh.nom(), adh.prenom() ) ) # création du fichier tex #########################