Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Show the 'g' for gramms on the nutrition PDF, next to the amount

Roland Geider525fd05a88b2
diff --git a/nutrition/views.py b/nutrition/views.py
index 57b2fbd5b..54c21dc7b 100644
--- a/nutrition/views.py
+++ b/nutrition/views.py
@@ -194,7 +194,7 @@ def export_pdf(request, id):
P = Paragraph('<para>%s</para>' % item.ingredient.name,
styleSheet["Normal"])
- data.append([item.amount_gramm, P])
+ data.append(["%sg" % item.amount_gramm, P])
# Set general table styles
table_style = []