Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
fix pagination offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Koopmann committed Oct 1, 2013
1 parent 14e9f08 commit 20bc825
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/UniversalSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ private UniversalSearch(ApiClient api, @Assisted TimeRange timeRange, @Assisted
this.api = api;
this.query = query;
this.timeRange = timeRange;
this.page = page;

if (page == 0) {
this.page = 0;
} else {
this.page = page-1;
}
}

public SearchResult search() throws IOException, APIException {
Expand Down

0 comments on commit 20bc825

Please sign in to comment.