mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 21:27:48 -05:00
Count league divisions for the current season, not when it was started
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user