mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-25 12:35:18 -05:00
Fix being able to report bracket reset scores after grand final is over
This commit is contained in:
@@ -501,7 +501,13 @@ export class BaseGetter {
|
||||
roundNumber: number,
|
||||
roundCount: number,
|
||||
): Match[] {
|
||||
if (roundNumber === roundCount) return [];
|
||||
if (
|
||||
roundNumber === roundCount ||
|
||||
// avoid putting teams to bracket reset if tournament is over
|
||||
match.opponent1?.result === "win"
|
||||
) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [this.findMatch(match.group_id, roundNumber + 1, 1)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user