From 55d72ca8077d3e582f1491ab70fb80852ef4a68a Mon Sep 17 00:00:00 2001 From: Kevin Burk Date: Sun, 11 Feb 2018 19:05:26 -0800 Subject: [PATCH] No spaces after CSV commas. --- submit/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submit/views.py b/submit/views.py index 1e6ab89..ff526f2 100644 --- a/submit/views.py +++ b/submit/views.py @@ -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)