From 5025141683018fae15d746a2def50b92eae9c765 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Tue, 6 May 2014 13:01:36 -0700 Subject: [PATCH] Change logic for adding known but unordered profiles The 'continue' statement is a complication in this context. Signed-off-by: Sean Robinson --- wifiradar/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wifiradar/config.py b/wifiradar/config.py index 3c8036b..3f3a806 100644 --- a/wifiradar/config.py +++ b/wifiradar/config.py @@ -376,8 +376,8 @@ class ConfigManager(object): # Make sure profiles are in auto_profile_order and vice-versa. auto_profile_order_copy = self.auto_profile_order[:] for ap in self.profiles(): - if ap in auto_profile_order_copy: continue - auto_profile_order_copy.append(ap) + if ap not in auto_profile_order_copy: + auto_profile_order_copy.append(ap) for ap in self.auto_profile_order[:]: if ap not in self.profiles(): auto_profile_order_copy.remove(ap) -- 2.11.4.GIT