Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use translated exercise name for the calendar

Roland Geidera88ba41413fd
diff --git a/wger/manager/views/ical.py b/wger/manager/views/ical.py
index 53bb93843..6a4be31aa 100644
--- a/wger/manager/views/ical.py
+++ b/wger/manager/views/ical.py
@@ -95,8 +95,8 @@ def get_events_workout(calendar, workout, duration, start_date=None):
# Make the description of the event with the day's exercises
description_list = []
for set_obj in day.set_set.all():
- for bases in set_obj.exercise_bases:
- description_list.append(str(bases))
+ for base in set_obj.exercise_bases:
+ description_list.append(str(base.get_exercise()))
description = ', '.join(description_list) if description_list else day.description
# Make an event for each weekday