Self hosted FLOSS fitness/workout, nutrition and weight tracker
Cleanup
Roland Geider724c6aacdc19
diff --git a/wger/nutrition/views/log.py b/wger/nutrition/views/log.pyindex e2857c97e..df462da78 100644--- a/wger/nutrition/views/log.py+++ b/wger/nutrition/views/log.py@@ -31,19 +31,10 @@ def overview(request, pk, date=None):Shows an overview of the log for the given date'''context = {}-if not date:date = datetime.date.today()plan = get_object_or_404(NutritionPlan, pk=pk)- print(plan.get_logged_values(date))-- # TODO: in django 1.9 use __date=date here- # logs = LogItem.objects.filter(datetime__year=date.year,- # datetime__month=date.month,- # datetime__day=date.day,- # plan=pk)- # context['logs'] = logscontext['plan'] = plancontext['date'] = datecontext['log_values'] = plan.get_logged_values(date)