Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Cast the sets to strings before joining them with the repetitions

Roland Geider3f0bb5db3b77
diff --git a/manager/views.py b/manager/views.py
index 25460b1e4..9a617db9b 100644
--- a/manager/views.py
+++ b/manager/views.py
@@ -182,7 +182,7 @@ def pdf_workout(request, id):
setting_data.append(str(setting.reps))
- out = set_obj.sets + 'x ' + ', '.join(setting_data)
+ out = str(set_obj.sets) + 'x ' + ', '.join(setting_data)
data.append([set_obj.order, Paragraph(exercise.name, styleSheet["Normal"]), out] + [''] * nr_of_weeks)
data.append(['', '', _('Impression')])