diff --git a/pwnagotchi/plugins/default/auto-tune.py b/pwnagotchi/plugins/default/auto-tune.py index 04caa2ad..d79ce198 100644 --- a/pwnagotchi/plugins/default/auto-tune.py +++ b/pwnagotchi/plugins/default/auto-tune.py @@ -166,7 +166,7 @@ class auto_tune(plugins.Plugin): iname, iname, "False", checked) ret += "" else: - ret += '
Channel | " totals = "
---|
APs seen | " @@ -229,7 +229,7 @@ class auto_tune(plugins.Plugin): logging.debug("Skipping no-name %s '%s'" % (ap['hostname'], lmac)) numHidden += 1 continue # skip hidden APs - elif ap['hostname'] == None and not self.options['show_hidden']: + elif ap['hostname'] is None and not self.options['show_hidden']: logging.debug("Skipping None %s '%s'" % (ap['hostname'], lmac)) numHidden += 1 continue # skip hidden APs @@ -487,7 +487,7 @@ class auto_tune(plugins.Plugin): self._known_aps[apID][p] = access_point[p] # if wasn't visible, increment current count - if self._known_aps[apID]['AT_visible'] == False: + if not self._known_aps[apID]['AT_visible']: self._known_aps[apID]['AT_visible'] = True self._known_aps[apID]['AT_seen'] += 1 self.incrementChisto('Current APs', channel) @@ -495,7 +495,7 @@ class auto_tune(plugins.Plugin): # increment context count in the AP data self._known_aps[apID][tag] = 1 if tag not in self._known_aps[apID] else self._known_aps[apID][tag] + 1 if not context: - logging.info("Returning AP: %s" % (apID)) + logging.info("Returning AP: %s" % apID) self._known_aps[apID]['AT_lastseen'] = time.time() return True @@ -559,7 +559,7 @@ class auto_tune(plugins.Plugin): self.incrementChisto('Missed joins', channel) logging.warn("Unknown AP '%s' seen leaving" % apID) else: - if self._known_aps[apID]['AT_visible'] == False: + if not self._known_aps[apID]['AT_visible']: self.incrementChisto('Missed rejoins', channel) logging.warn("AP '%s' already gone", apID) else: