From c94259da400390989ac1dd575eb073548742000d Mon Sep 17 00:00:00 2001 From: "ioannis.diplas" Date: Fri, 30 Aug 2019 09:02:38 +0000 Subject: [PATCH] fixing from & quantity values for export-to-csv functionality --- .../eu/dnetlib/repo/manager/controllers/PiWikController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();