mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-07 12:51:02 +00:00
fixed that getPublicEvents() should only deliver public events (was borken for local events)
This commit is contained in:
1 parent
8dd998b8be
commit
67a967ccff
1 file changed
+3
-1
+3
-1
@@ -3031,7 +3031,9 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
public List<EventBaseDTO> getPublicEventsOfAllSailingServers() throws MalformedURLException {
|
||||
List<EventBaseDTO> result = new ArrayList<>();
|
||||
for (EventDTO localEvent : getEvents()) {
|
||||
result.add(localEvent);
|
||||
if(localEvent.isPublic) {
|
||||
result.add(localEvent);
|
||||
}
|
||||
}
|
||||
for (Entry<RemoteSailingServerReference, com.sap.sse.common.Util.Pair<Iterable<EventBase>, Exception>> serverRefAndEventsOrException :
|
||||
getService().getPublicEventsOfAllSailingServers().entrySet()) {
|
||||
|
||||
Reference in new issue
Block a user