Sémantique de expected mal comprise dans le précédent commit. Fucking club-crans.

This commit is contained in:
Vincent Le Gallic 2014-05-14 11:37:37 +02:00
parent bab8ecc703
commit 1c2dbbe9e7

View file

@ -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: