[whokfet] On détecte à part les mahines du BDE
This commit is contained in:
parent
6ad598f669
commit
75bfd1880a
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue