Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.
Open
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
4 changes: 2 additions & 2 deletions submit/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,12 +694,12 @@ def project_requeue(request, project):
permission='authenticated')
@validate(project=EditableDBThing('project_id', Project, source=MATCHDICT))
def project_scores(request, project):
rows = ['Name, Email, Group ID, Score (On Time), Score']
rows = ['Name,Email,Group ID,Score (On Time),Score']
_, best_ontime, best = project.process_submissions()
for group, (sub, points) in best.items():
on_time = best_ontime[group][1] if group in best_ontime else ''
for user in group.users:
rows.append('{}, {}, {}, {}, {}'
rows.append('{},{},{},{},{}'
.format(user.name, user.username, group.id,
points, on_time))
disposition = 'attachment; filename="{0}.csv"'.format(project.name)
Expand Down