diff --git a/gestion/annuaires.py b/gestion/annuaires.py index 57e8ab7a..99b38cdd 100755 --- a/gestion/annuaires.py +++ b/gestion/annuaires.py @@ -506,7 +506,7 @@ def all_switchs(bat=None): bat = [bat] switchs = [] for b in map(lambda x: x.lower(), bat): - dup = map(lambda x: x[1], reverse(b).keys()) + dup = map(lambda x: x[0], reverse(b).keys()) # dup contient des elements en double for n in list(dict(zip(dup,[None]*len(dup)))): if int(n) == 0: