Skip to content

Commit

Permalink
Match eventStatus key instead of value
Browse files Browse the repository at this point in the history
  • Loading branch information
louietyj committed Nov 5, 2016
1 parent 9d76137 commit a679bd6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public static List<Event> filterEvents(Map<String, String[]> parsedResult) throw
}

// Filter by eventStatus
if (parsedResult.get("eventStatus") != null && parsedResult.get("eventStatus")[1] != null) {
String eventStatus = parsedResult.get("eventStatus")[1];
if (parsedResult.get("eventStatus") != null && parsedResult.get("eventStatus")[0] != null) {
String eventStatus = parsedResult.get("eventStatus")[0];
LocalDateTime now = LocalDateTime.now();
if (eventStatus.equals("over") || eventStatus.equals("past")) {
eventPredicates.add(Event.predEndBefore(now));
Expand Down

0 comments on commit a679bd6

Please sign in to comment.