Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Filter the weight logs so only the user's entries are shown

Roland Geiderdbee2cbae96b
diff --git a/manager/views.py b/manager/views.py
index 35cf09488..66f5e7014 100644
--- a/manager/views.py
+++ b/manager/views.py
@@ -1101,8 +1101,8 @@ class WorkoutLogDetailView(DetailView):
entry_log = SortedDict()
reps = []
chart_data = []
- logs = exercise.workoutlog_set.all()
-
+ logs = exercise.workoutlog_set.filter(user=self.request.user)
+
for entry in logs:
if entry.reps not in reps:
reps.append(entry.reps)