Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Switch columns in export_csv for weight

absolutely-not-bot05a8b983070f
diff --git a/wger/weight/views.py b/wger/weight/views.py
index 6afc81fd8..91ba7f7d6 100644
--- a/wger/weight/views.py
+++ b/wger/weight/views.py
@@ -150,7 +150,7 @@ def export_csv(request):
writer.writerow([_('Weight'), _('Date')])
for entry in weights:
- writer.writerow([entry.weight, entry.date])
+ writer.writerow([entry.date, entry.weight])
# Send the data to the browser
response['Content-Disposition'] = 'attachment; filename=Weightdata.csv'