Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

We want to show the time if there is a time, not the other way round!

Roland Geider8a3d28b95d39
diff --git a/nutrition/views.py b/nutrition/views.py
index b2ea7d4ec..9a26b0569 100644
--- a/nutrition/views.py
+++ b/nutrition/views.py
@@ -196,7 +196,7 @@ def export_pdf(request, id):
meal_markers.append(len(data))
- if meal.time:
+ if not meal.time:
P = Paragraph('<para align="center"><strong>%(meal_nr)s</strong></para>' %
{'meal_nr': i},
styleSheet["Normal"])