if rc.rowcount :
self.db.commit()
+ def seen_update ( self , mac , timestamp ) :
+
+ query = "UPDATE ap SET last_seen=%f WHERE mac='%s'" % ( timestamp , mac )
+ rc = self.db.execute( query )
+ if rc.rowcount :
+ self.db.commit()
+
def delete ( self , mac ) :
rc = self.db.execute( "DELETE FROM ap WHERE mac='%s'" % mac )
if rc.rowcount :