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())