From 4bd528bd1ea36499aef1bab7bc5fd026d1fb4391 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Fri, 25 Feb 2011 00:42:37 +0100 Subject: [PATCH] =?UTF-8?q?[switchs.py]=20chbres=20ne=20contient=20pas=20l?= =?UTF-8?q?a=20lettre=20du=20b=C3=A2timent...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: a2047f32cc43ee6f55c28ec7e0023456 darcs-hash:20110224234237-ffbb2-0733b558b5328eacac6428c6c063ec709a69221f.gz --- gestion/gen_confs/switchs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index c1aa85ae..00258539 100644 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -433,7 +433,7 @@ exit # Pour chaque chambre sur cette prise for chb in chbres: # On selectionne les eventuels adherents y residant - for adherent in self.db.search("chbre=%s" % (chb))['adherent']: + for adherent in self.db.search("chbre=%s%s" % (bat, chb))['adherent']: # On selectionne les machines fixes de l'adherent, et on ajoute le nombre au quota nombre_de_machines += len(adherent.machines_fixes())