Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Only return the date, not the date

Roland Geiderbfc9cd71e71f
diff --git a/wger/nutrition/models.py b/wger/nutrition/models.py
index 8dc51f685..df9e8d757 100644
--- a/wger/nutrition/models.py
+++ b/wger/nutrition/models.py
@@ -210,7 +210,7 @@ class NutritionPlan(models.Model):
for date in self.logitem_set.datetimes('datetime', 'day', order='DESC'):
# TODO: in python 3.5 this can be simplified as z = {**x, **y}
tmp = self.get_log_summary(date=date).copy()
- tmp.update({'date': date})
+ tmp.update({'date': date.date()})
result.append(tmp)
return result