mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 05:07:36 -05:00
Count league divisions for the current season, not when it was started
This commit is contained in:
parent
2d3bff6437
commit
609bb2de7a
|
|
@ -65,7 +65,10 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
|
|||
const results = allMatchResultsByTournamentId(tournamentId);
|
||||
invariant(results.length > 0, "No results found");
|
||||
|
||||
const season = Seasons.current(tournament.ctx.startTime)?.nth;
|
||||
const seasonAttributionDate = tournament.isLeagueDivision
|
||||
? new Date()
|
||||
: tournament.ctx.startTime;
|
||||
const season = Seasons.current(seasonAttributionDate)?.nth;
|
||||
|
||||
const seedingSkillCountsFor = tournament.skillCountsFor;
|
||||
const standingsResult = Standings.tournamentStandings(tournament);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user