From d78f8bc158c60d2afc460001fea99efcfa895320 Mon Sep 17 00:00:00 2001 From: pauget Date: Thu, 14 Oct 2004 01:32:00 +0200 Subject: [PATCH] Bug : trop de prises actives. darcs-hash:20041013233200-41617-4cea801c0dc17d26fa7034d3b7fad5bfe2cb6795.gz --- gestion/gen_confs/switchs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 :