From 63eb5c0f5f36d0033906b4aa397816fb5efd48eb Mon Sep 17 00:00:00 2001 From: javiplx Date: Sat, 14 May 2011 12:21:07 +0000 Subject: [PATCH] BUGFIX git-svn-id: file:///svnroot/wifihood/trunk@164 c51dfc6a-5949-4919-9c8e-f207a149c383 --- wifiscanner/wifimap/replay.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wifiscanner/wifimap/replay.py b/wifiscanner/wifimap/replay.py index 2db65cf..3d3113d 100644 --- a/wifiscanner/wifimap/replay.py +++ b/wifiscanner/wifimap/replay.py @@ -77,7 +77,7 @@ class ReplayScanner ( gobject.GObject ) : stored = self.db.db.execute( "SELECT rss, n, lat, lon FROM ap WHERE mac='%s'" % mac ).fetchone() if stored : if not self.aps.has_key( mac ) : - self.aps[ mac ] = stored[1:] + self.aps[ mac ] = list(stored[1:]) if stored[0] > max_rss : max_rss = stored[0] self.db.update( mac , max_rss , self.tstamp , self.info[4:] ) @@ -86,9 +86,9 @@ class ReplayScanner ( gobject.GObject ) : if not self.aps.has_key( mac ) : self.aps[ mac ] = [ 0 , 0 , 0 ] self.db.add( mac , max_rss , self.tstamp , self.info[4:] ) - self.aps[0] += 1 - self.aps[1] += self.info[4] - self.aps[2] += self.info[5] + self.aps[mac][0] += 1 + self.aps[mac][1] += self.info[4] + self.aps[mac][2] += self.info[5] if newap : self.newap += newap self.newaps = True -- 1.7.9.5