Skip to content

Commit 93f3492

Browse files
authored
Merge pull request #255 from swamphacks/master
chore:sync dev
2 parents f6b9af4 + 9e6cda6 commit 93f3492

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

apps/api/internal/bat/engine.go

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

151+
// Check for teams with only one member and move them to individualCandidates
152+
for teamID, candidates := range teamMap {
153+
if len(candidates) == 1 {
154+
individualCandidates = append(individualCandidates, candidates[0])
155+
delete(teamMap, teamID)
156+
}
157+
}
158+
151159
teamsEvalData := make([]TeamEvaluationData, 0)
152160
for teamId, members := range teamMap {
153161
var totalScore float64

apps/api/internal/email/templates/ApplicationAcceptedEmail.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ <h2 style="margin:0; font-size:22px; color:#1a1a1a;">Hi {{ .Name }},</h2>
4646
</div>
4747

4848
<p style="margin:0 0 15px 0; font-size:16px;">
49-
Please confirm your attendance by January 2nd. <strong>Failure to do so means you are giving up your
49+
Please confirm your attendance by <u>January 2nd</u>. <strong>Failure to do so means you are giving up
50+
your
5051
spot,</strong> and
5152
we will admit someone from a waitlist.
5253
</p>

apps/api/internal/email/templates/ApplicationRejectedEmail.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ <h2 style="margin:0; font-size:22px; color:#1a1a1a;">Hi {{ .Name }},</h2>
4747
<li><strong>Join the Waitlist</strong>: We may have openings available closer to the event. You can
4848
join the waitlist in the <a href="https://app.swamphacks.com/portal">SwampHacks Portal</a> or by
4949
signing up
50-
in person on the day of check-in if space allows.
50+
in person on the day of check-in if space allows. The waitlist operates on a first-come, first-served
51+
basis.
5152
</li>
5253
<li><strong>Mentor</strong>: Share your knowledge and guide hackers through their projects. <a
5354
href="https://swamphacks.com/mentor" style="color:#1155cc; text-decoration:underline;">Sign up to be

apps/api/internal/services/email.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ func (s *EmailService) SendHtmlEmail(recipient string, subject string, name stri
5757
s.logger.Err(err).Msg("Failed to parse email template for recipient")
5858
}
5959

60-
s.logger.Info().Str("Name", name)
6160
err = template.Execute(&body, struct{ Name string }{Name: name})
6261
if err != nil {
6362
s.logger.Err(err).Msg("Failed to inject template variables for recipient '%s'.")
@@ -68,6 +67,7 @@ func (s *EmailService) SendHtmlEmail(recipient string, subject string, name stri
6867
s.logger.Err(err).Msg("Failed to send confirmation email to recipient")
6968
return err
7069
}
70+
s.logger.Info().Str("Template", templateFilePath).Msg("Sent email")
7171

7272
return nil
7373
}

0 commit comments

Comments
 (0)