diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index 8b9a9661..213da5b2 100755 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -294,7 +294,7 @@ exit # Macs sur la prise nb = 0 - res = self.db.search('chbre=%s%s' % (bat.upper(), chbre) ) + res = self.db.search('chbre=%s%s&paiement=ok' % (bat.upper(), chbre) ) res = res['adherent'] + res['club'] if nb>=3 : warn += 'Trop de macs sur la prise %i\n' % prise @@ -309,7 +309,6 @@ exit nb += 1 else : warn += 'Plusieurs adherents dans la chambre %s%s\n' % (bat.upper(), chbre) - if not macs : prise_params['etat']='\n disable' else :