Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions hackadmin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ def extract_badges_for_hackathon(hackathon, issue_date, format='json'):

badges.setdefault('facilitators', [])
for team in hackathon.teams.all():
badges['facilitators'].append({
'first_name': team.mentor.first_name,
'name': team.mentor.full_name or team.mentor.slack_display_name,
'email': team.mentor.email,
'issue_date': issue_date,
'team': team.display_name,
'project': team.project.display_name if team.project else '',
'award': 'Hackathon Facilitators',
'award_ranking': 'n/a',
})
if team.mentor:
badges['facilitators'].append({
'first_name': team.mentor.first_name,
'name': team.mentor.full_name or team.mentor.slack_display_name,
'email': team.mentor.email,
'issue_date': issue_date,
'team': team.display_name,
'project': team.project.display_name if team.project else '',
'award': 'Hackathon Facilitators',
'award_ranking': 'n/a',
})

projects = [team.project for team in hackathon.teams.all()
if team.project]
Expand Down
1 change: 0 additions & 1 deletion hackadmin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def hackathon_participants(request, hackathon_id):
hackathon, date.today().isoformat()).items()
for awardee in values
if category not in ['participants', 'judges', 'facilitators']]
print(awardees)
return render(request, 'hackadmin_participants.html', {
'hackathon': hackathon,
'mentors': mentors,
Expand Down