Skip to content

Commit

Permalink
fix: include future events and past activities in ical feed
Browse files Browse the repository at this point in the history
  • Loading branch information
RafDevX committed May 9, 2024
1 parent 7960c78 commit 8f9ee07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/se/datasektionen/calypso/feeds/IcalFeed.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public String renderIcsFeed(boolean english) {
.map(ReceptionMode::getState)
.orElse(false);

apiRepository.eventsInTimeSpan(now.minusMonths(2), now, isReception)
apiRepository.eventsInTimeSpan(now.minusMonths(2), now.plusYears(2), isReception)
.stream()
.map(e -> toEvent(e, english))
.forEach(ical::addEvent);

activityPeriodRepository.findAllAfter(now.toLocalDate(), isReception)
activityPeriodRepository.findAllAfter(now.toLocalDate().minusMonths(2), isReception)
.stream()
.map(p -> toEvent(p, english))
.forEach(ical::addEvent);
Expand Down

0 comments on commit 8f9ee07

Please sign in to comment.