feat(series): seeding practice in groups split on the series standings (1.45.0)
This commit is contained in:
1 parent
80e0c5308a
commit
e7eaa0561e
11 files changed
+112
-21
No files matched your search
+3
-1
@@ -175,7 +175,9 @@ export function getSeriesRoundNextStep(sessions = []) {
|
||||
const has = (type) => ordered.some((session) => session.type === type);
|
||||
if (!has("qualification")) {
|
||||
const practice = ready("practice");
|
||||
return practice ? { kind: "seeding", session: practice } : { kind: "make_qualifying" };
|
||||
// notStarted: no seeding group has run yet (the groups can still be re-split).
|
||||
const notStarted = ordered.filter((session) => session.type === "practice").every((session) => session.status === "ready");
|
||||
return practice ? { kind: "seeding", session: practice, notStarted } : { kind: "make_qualifying" };
|
||||
}
|
||||
const heat = ready("qualification");
|
||||
if (heat) return { kind: "qualifying", session: heat };
|
||||
|
||||
Reference in new issue
Block a user