added public community status

This commit is contained in:
Miriam Baglioni 2023-11-07 11:51:24 +01:00
parent e3c1ae809d
commit 6c0ffd9824
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class UtilCommunityAPI {
.readValue(eu.dnetlib.dhp.communityapi.QueryCommunityAPI.communities(), CommunitySummary.class)
.stream()
.filter(
community -> community.getStatus().equals("all") &&
community -> (community.getStatus().equals("all") || community.getStatus().equalsIgnoreCase("public")) &&
(community.getType().equals("ri") || community.getType().equals("community")))
.collect(Collectors.toList());