Commit 75bfd188 authored by Vincent Le gallic's avatar Vincent Le gallic
Browse files

[whokfet] On détecte à part les mahines du BDE

parent 6ad598f6
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment