Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't show seconds for the meal time in the PDF output

Roland Geider845c6d1255e4
diff --git a/nutrition/views.py b/nutrition/views.py
index 0f3cbbf45..f4834c89a 100644
--- a/nutrition/views.py
+++ b/nutrition/views.py
@@ -193,7 +193,7 @@ def export_pdf(request, id):
else:
P = Paragraph('<para align="center"><strong>%(meal_nr)s - %(meal_time)s</strong></para>' %
{'meal_nr': i,
- 'meal_time': meal.time},
+ 'meal_time': meal.time.strftime("%H:%M")},
styleSheet["Normal"])
data.append([P])