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

Commit 20bc825

Browse files
author
Lennart Koopmann
committed
fix pagination offset
1 parent 14e9f08 commit 20bc825

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/models/UniversalSearch.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ private UniversalSearch(ApiClient api, @Assisted TimeRange timeRange, @Assisted
5555
this.api = api;
5656
this.query = query;
5757
this.timeRange = timeRange;
58-
this.page = page;
58+
59+
if (page == 0) {
60+
this.page = 0;
61+
} else {
62+
this.page = page-1;
63+
}
5964
}
6065

6166
public SearchResult search() throws IOException, APIException {

0 commit comments

Comments
 (0)