Skip to content

Commit 1b4ba01

Browse files
authored
Merge pull request #249 from swamphacks/hotfix/decisions-hotfixes
fix:comb out 1 person teams
2 parents 1440825 + eba1026 commit 1b4ba01

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/api/internal/bat/engine.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ func (b *BatEngine) GroupCandidates(admissionsData []AdmissionCandidate) ([]Team
148148
}
149149
}
150150

151+
// Comb out all 1 person teams
152+
filtered := make(map[uuid.UUID][]AdmissionCandidate)
153+
for key, team := range teamMap {
154+
if len(team) > 1 {
155+
filtered[key] = team
156+
}
157+
}
158+
teamMap = filtered
159+
151160
teamsEvalData := make([]TeamEvaluationData, 0)
152161
for teamId, members := range teamMap {
153162
var totalScore float64

0 commit comments

Comments
 (0)