Skip to content

Commit

Permalink
rename idToDEOrdinal to disambig
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlee337 committed Sep 16, 2024
1 parent d712a77 commit 8765efc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/startgg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export async function getPhaseGroup(key: string, id: number) {
gfr.round += 1;
}

const idToOrdinal = new Map<number, number>();
const idToDEOrdinal = new Map<number, number>();
if (bracketType === 2) {
const idToApiSet = new Map<number, any>();
reachableSets.forEach((set) => idToApiSet.set(set.id, set));
Expand Down Expand Up @@ -354,7 +354,7 @@ export async function getPhaseGroup(key: string, id: number) {
let ordinal = 1;
while (stack.length > 0) {
const curr = stack.pop();
idToOrdinal.set(curr.id, ordinal);
idToDEOrdinal.set(curr.id, ordinal);
ordinal += 1;
}
}
Expand Down Expand Up @@ -396,7 +396,7 @@ export async function getPhaseGroup(key: string, id: number) {
entrant2Participants,
entrant2Score: set.entrant2Score,
stream,
ordinal: idToOrdinal.get(setId) ?? set.callOrder,
ordinal: idToDEOrdinal.get(setId) ?? set.callOrder,
wasReported: reportedSetIds.has(setId),
updatedAtMs,
};
Expand Down

0 comments on commit 8765efc

Please sign in to comment.