Skip to content

Commit

Permalink
Don't select seasons that haven't started yet (#3250)
Browse files Browse the repository at this point in the history
* Don't select seasons that haven't started yet

* Revert "Don't select seasons that haven't started yet"

This reverts commit f71ec50.

* Filter in api call instead
  • Loading branch information
BlackYps authored Sep 29, 2024
1 parent 6619e6a commit efd4ce9
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ public Flux<LeagueSeason> getSeasons(League league) {
com.faforever.commons.api.dto.LeagueSeason.class)
.collection()
.setFilter(
qBuilder().intNum(
"league.id")
.eq(league.id()))
qBuilder().intNum("league.id")
.eq(league.id())
.and()
.instant("startDate")
.before(OffsetDateTime.now().toInstant(), false))
.addSortingRule(
"startDate",
false);
Expand Down

0 comments on commit efd4ce9

Please sign in to comment.