Set offset to be a multiple of 36
The server returns lists of 36 models, so we have to align our offset to that.
This commit is contained in:
parent
091628b486
commit
2a5c0ccd43
|
@ -32,7 +32,7 @@ public class BongaCamsUpdateService extends PaginatedScheduledService {
|
||||||
return new Task<List<Model>>() {
|
return new Task<List<Model>>() {
|
||||||
@Override
|
@Override
|
||||||
public List<Model> call() throws IOException {
|
public List<Model> call() throws IOException {
|
||||||
String _url = url + ((page-1) * 50);
|
String _url = url + ((page-1) * 36);
|
||||||
LOG.debug("Fetching page {}", _url);
|
LOG.debug("Fetching page {}", _url);
|
||||||
Request request = new Request.Builder()
|
Request request = new Request.Builder()
|
||||||
.url(_url)
|
.url(_url)
|
||||||
|
|
Loading…
Reference in New Issue