diff --git a/src/main/java/eu/dnetlib/repo/manager/controllers/PiWikController.java b/src/main/java/eu/dnetlib/repo/manager/controllers/PiWikController.java index 187d289..1f3218b 100644 --- a/src/main/java/eu/dnetlib/repo/manager/controllers/PiWikController.java +++ b/src/main/java/eu/dnetlib/repo/manager/controllers/PiWikController.java @@ -88,6 +88,8 @@ public class PiWikController { @RequestMapping(value = "/getPiwikSitesForRepos/csv" , method = RequestMethod.GET,produces = MediaType.APPLICATION_OCTET_STREAM_VALUE) @ResponseBody public FileSystemResource getPiwikSitesForReposToCsv( + @RequestParam(value = "from",required=false,defaultValue = "0") int from, + @RequestParam(value = "quantity",required=false,defaultValue = "10000") int quantity, @RequestParam(value = "order",required=false,defaultValue = "DSC") OrderByType orderType, @RequestParam(value = "orderField", required = false, defaultValue = "REPOSITORY_NAME") OrderByField orderField, @RequestParam(value = "searchField", required = false, defaultValue = "") String searchField, @@ -96,7 +98,7 @@ public class PiWikController { ) throws IOException { Path p = Files.createTempFile("exportingCsv-", new Date().toString()); - List returning = piWikService.getPiwikSitesForRepos(orderField,orderType,0,100000,searchField); + List returning = piWikService.getPiwikSitesForRepos(orderField,orderType,0,10000,searchField); try (PrintWriter writer = new PrintWriter(p.toFile())) { StringBuilder sb = new StringBuilder();