Skip to content

Commit

Permalink
fix to return all lines for a given steig
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnavratil committed Oct 10, 2018
1 parent a851973 commit 027b452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'at.alexnavratil'
version '1.3.1'
version '1.3.2'

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@ private Map<Integer, List<MonitorResponse>> extractRealtimeData(String responseB
.forEach(departure -> departureList.add(departure.get("departureTime").get("countdown").as(Integer.class)));
monitorResponseList.add(new MonitorResponse(lineName, towards, departureList));
});
responseMap.put(currentRbl, monitorResponseList);

if(responseMap.containsKey(currentRbl)) {
responseMap.get(currentRbl).addAll(monitorResponseList);
} else {
responseMap.put(currentRbl, monitorResponseList);
}
});
return responseMap;
} else {
Expand Down

0 comments on commit 027b452

Please sign in to comment.