Changing export-to-csv to return all the Piwik results

This commit is contained in:
Ioannis Diplas 2019-08-30 08:33:13 +00:00
parent 1f7a25d184
commit ec3bfd1eaf
1 changed files with 1 additions and 3 deletions

View File

@ -88,8 +88,6 @@ 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 = "100") 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,
@ -98,7 +96,7 @@ public class PiWikController {
) throws IOException {
Path p = Files.createTempFile("exportingCsv-", new Date().toString());
List<PiwikInfo> returning = piWikService.getPiwikSitesForRepos(orderField,orderType,from,quantity,searchField);
List<PiwikInfo> returning = piWikService.getPiwikSitesForRepos(orderField,orderType,0,100000,searchField);
try (PrintWriter writer = new PrintWriter(p.toFile())) {
StringBuilder sb = new StringBuilder();