Skip to content

Commit

Permalink
Merge pull request #121 from HackDavis/feat/npo-update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
brandonw504 authored Apr 28, 2024
2 parents 227c953 + e448037 commit 687dd1f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/(api)/_utils/scoring/rankTeams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ export default async function rankTeams(teams: Team[]) {
}

topEntries.sort((entry1, entry2) => entry2.score - entry1.score);
// if (
// track.name !== 'Best Hack for Life of Kai' ||
// track.name !== 'Best Hack for DCMH' ||
// track.name !== 'Best Hack for AggieHouse'
// )
// topEntries.splice(10);
if (
track.name !== ('Best Hack for Life of Kai' as string) ||
track.name !== ('Best Hack for DCMH' as string) ||
track.name !== ('Best Hack for AggieHouse' as string)
) {
topEntries.splice(10);
}

trackResults.push({
track: track.name,
Expand Down

0 comments on commit 687dd1f

Please sign in to comment.