From 75bfd1880a2dd1465752d95afb00a35a2e3a8ca8 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 17 Apr 2014 23:02:13 +0200 Subject: [PATCH] =?UTF-8?q?[whokfet]=20On=20d=C3=A9tecte=20=C3=A0=20part?= =?UTF-8?q?=20les=20mahines=20du=20BDE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/tools/whokfet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestion/tools/whokfet.py b/gestion/tools/whokfet.py index 142a5aa9..903487bc 100755 --- a/gestion/tools/whokfet.py +++ b/gestion/tools/whokfet.py @@ -43,6 +43,7 @@ def get_state(): res = {'ma': [], 'crans': [], 'adh': [], + 'bde': [], 'unknown_macs': [], 'ttyfound': 0, } @@ -60,6 +61,8 @@ def get_state(): key = 'crans' elif hasattr(m.proprietaire(),'droits') and m.proprietaire().droits(): key = 'ma' + elif m.proprietaire().idn == "cid" and m.proprietaire().id() == "1": + key = 'bde' else: key = 'adh' res[key].append(m)