From d63f6384d326e4a0240cb17ea43e790690a8da45 Mon Sep 17 00:00:00 2001 From: glondu Date: Sun, 28 Oct 2007 13:42:07 +0100 Subject: [PATCH] Oubli d'un cas particulier... darcs-hash:20071028124207-68412-7eb9343833ab96fbfa5af9f3d899999b6981a074.gz --- surveillance/parse_auth_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surveillance/parse_auth_log.py b/surveillance/parse_auth_log.py index dfc9b29b..7336974e 100755 --- a/surveillance/parse_auth_log.py +++ b/surveillance/parse_auth_log.py @@ -42,7 +42,7 @@ aujourdhui = datetime.date.today() def trouve_chambre(bat, prise): """ Trouve la chambre associée à une prise """ - if prise in [ '????', 'EXT' ]: + if prise in ('????', 'EXT', 'CRA'): return prise if not prise_chbre.has_key(bat): @@ -61,7 +61,7 @@ def trouve_chambre(bat, prise): def trouve_prise(chbre): """ Trouve la prise associée à une chambre """ - if chbre in [ 'EXT', '????' ]: + if chbre in ('EXT', '????', 'CRA'): return chbre else: bat = chbre[0].lower()