Skip to content

Commit

Permalink
remove debug line + fix add a muscle as primary and secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
alois committed Apr 30, 2016
1 parent 692477e commit ce5c0e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion wger/manager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ def canonical_representation(self):
'frontsecondary': muscles_front_secondary,
'backsecondary': muscles_back_secondary},
'day_list': day_canonical_repr}
print(workout_canonical_form)
# Save to cache
cache.set(cache_mapper.get_workout_canonical(self.pk), workout_canonical_form)

Expand Down
4 changes: 2 additions & 2 deletions wger/manager/views/workout.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ def view(request, pk):
muscles_back.append('images/muscles/main/muscle-{0}.svg'.format(i))

for i in canonical['muscles']['frontsecondary']:
if i not in muscles_front:
if i not in muscles_front and i not in canonical['muscles']['front']:
muscles_front.append('images/muscles/secondary/muscle-{0}.svg'.format(i))
for i in canonical['muscles']['backsecondary']:
if i not in muscles_back:
if i not in muscles_back and i not in canonical['muscles']['back']:
muscles_back.append('images/muscles/secondary/muscle-{0}.svg'.format(i))

# Append the silhouette of the human body as the last entry so the browser
Expand Down

0 comments on commit ce5c0e9

Please sign in to comment.