Skip to content

Commit

Permalink
Merge pull request #64 from kbss-cvut/fix/record-manager-ui-194-fix-e…
Browse files Browse the repository at this point in the history
…xcel-export

 Fix excel export
  • Loading branch information
kostobog authored Jul 23, 2024
2 parents 133193b + 1a431e6 commit d467e96
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public InputStream convert(List<RawRecord> rawRecords){

private List<ExportRecord> findExportRecordsData(List<RawRecord> rawRecords){
Map<URI, String> translatorMap = new HashMap<>();
List<Path> paths = codeListValuesDao.getBroaderPath(rawRecords.stream().map(r -> r.getAc_comp()).collect(Collectors.toSet()));
List<Path> paths = codeListValuesDao.getBroaderPath(rawRecords.stream().map(r -> r.getAc_comp())
.filter(u -> u != null)
.collect(Collectors.toSet()));
Set<URI> uris = rawRecords.stream().flatMap(r -> Stream.of(
r.getClassificationOfOccurrence(), r.getConsequence(), r.getFailureAscertainmentCircumstances(),
r.getFailureCause(), r.getAc_comp(), r.getFhaEvent(), r.getMission(), r.getRepair(),
Expand Down

0 comments on commit d467e96

Please sign in to comment.