From f6503c989794a9c1305b17c505e57bf5e0094d0f Mon Sep 17 00:00:00 2001 From: Javier Palacios Date: Fri, 2 Nov 2012 00:28:52 +0100 Subject: [PATCH] Use the new database schema for wifi mapping application --- wifiscanner/wifimap/view.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wifiscanner/wifimap/view.py b/wifiscanner/wifimap/view.py index 3c5c82d..0bff868 100755 --- a/wifiscanner/wifimap/view.py +++ b/wifiscanner/wifimap/view.py @@ -251,9 +251,8 @@ class simpleMapWidget ( AbstractmapWidget , gtk.Image ) : db.open() # NOTE : Intervals for query are just educated guesses to fit in window lat , lon = self.conf.lat , self.conf.lon - for ap in db.db.execute( "SELECT * FROM ap where lat>%f and lat<%f and lon>%f and lon<%f" % ( lat - 0.003 , lat + 0.003 , lon - 0.007 , lon + 0.007 ) ) : - if ap[3] > 1 : - self.plot( pixmap , ( ap[4]/ap[3] , ap[5]/ap[3] ) , "blue" ) + for ap in db.db.execute( "SELECT lat, lon FROM ap where lat>%f and lat<%f and lon>%f and lon<%f" % ( lat - 0.003 , lat + 0.003 , lon - 0.007 , lon + 0.007 ) ) : + self.plot( pixmap , ( ap[0] , ap[1] ) , "blue" ) db.close() self.get_pixbuf().get_from_drawable( pixmap , pixmap.get_colormap() , 0, 0 , 0 , 0 , self.win_x, self.win_y ) -- 1.7.9.5