Skip to content

Commit

Permalink
Merge pull request #240 from rksh/latest_network_detail_obs
Browse files Browse the repository at this point in the history
ENH - showing latest points to 512 obs limit on net detail
  • Loading branch information
rksh committed Jul 17, 2018
2 parents 7ceffd9 + 5b1f965 commit 9563281
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -291,7 +291,8 @@ public void onMapReady(final GoogleMap googleMap) {
};

final String sql = "SELECT level,lat,lon FROM "
+ DatabaseHelper.LOCATION_TABLE + " WHERE bssid = '" + network.getBssid() + "' limit " + obsMap.maxSize();
+ DatabaseHelper.LOCATION_TABLE + " WHERE bssid = '" + network.getBssid() +
"' ORDER BY _id DESC limit " + obsMap.maxSize();

final QueryThread.Request request = new QueryThread.Request( sql, new QueryThread.ResultHandler() {
@Override
Expand Down

0 comments on commit 9563281

Please sign in to comment.