From 1c2dbbe9e7575a4546289342eea98b28f62b1540 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 14 May 2014 11:37:37 +0200 Subject: [PATCH] =?UTF-8?q?S=C3=A9mantique=20de=20expected=20mal=20compris?= =?UTF-8?q?e=20dans=20le=20pr=C3=A9c=C3=A9dent=20commit.=20Fucking=20club-?= =?UTF-8?q?crans.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/tools/who2b.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gestion/tools/who2b.py b/gestion/tools/who2b.py index dde0af9d..957b51ec 100755 --- a/gestion/tools/who2b.py +++ b/gestion/tools/who2b.py @@ -34,7 +34,6 @@ def liste_2b(): "00:1c:2e:56:1a:20": "minigiga (switch)", "00:40:8c:7f:4a:b5": "tinybrother", "00:24:8c:44:3b:70": "vo", - "64:66:b3:b0:e3:d6": "ripe-atlas", } # Machines branchée sur la prise @@ -49,7 +48,12 @@ def liste_2b(): # Machine personnelle ou machine Cr@ns ? if len(fm['borneWifi']) == 0 and len(fm['machineCrans']) == 0: try: - if len(m.proprietaire().droits()) != 0 or len(fm['machineFixe']) != 0: + p = m.proprietaire() + if p.idn == "cid" and p.id() == "35": + # Machine du *club* Cr@ns + machines_crans.append(m) + continue + if len(p.droits()) != 0 or len(fm['machineFixe']) != 0: # On filtre en Wifi sur ceux qui ont des droits machines.append(m) except: