Skip to content

Commit

Permalink
TEMPORARILY exclude any teams less than or equal to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlihou committed Mar 23, 2024
1 parent 00f17b2 commit 06bc0bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/src/api/FrcEventsApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,15 @@ export default class FrcEventsApiClient extends GenericApiClient {

if (matchResults.length) {
bracket[bm.number] = await Promise.all(matchResults.map(async (mr) => ({
participants: mr.teams.filter((team) => !!team.teamNumber)
participants: mr.teams.filter((team) => !!team.teamNumber && team.teamNumber > 3)
.reduce((prev, team) => ({
...prev,
[team.station]: team.teamNumber,
}), {} as Record<DriverStation, number>),
winner: await getWinnerFromMatch(mr, bm.number),
})));

if (bracket[bm.number]!)
}
}));
return bracket;
Expand Down

0 comments on commit 06bc0bc

Please sign in to comment.