Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't add the username to the generated weight CSV file

Roland Geider07db505f97b3
diff --git a/wger/weight/views.py b/wger/weight/views.py
index ac9ff49ec..03d1b02f1 100644
--- a/wger/weight/views.py
+++ b/wger/weight/views.py
@@ -122,7 +122,6 @@ def export_csv(request):
'''
# Prepare the response headers
- filename = u"{0}-{1}".format('weightdata', request.user.username)
response = HttpResponse(mimetype='text/csv')
# Convert all weight data to CSV
@@ -135,7 +134,7 @@ def export_csv(request):
writer.writerow([entry.weight, entry.creation_date])
# Send the data to the browser
- response['Content-Disposition'] = 'attachment; filename=%s.csv' % filename
+ response['Content-Disposition'] = 'attachment; filename=Weightdata.csv'
response['Content-Length'] = len(response.content)
return response