Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Filter out days which are None

Roland Geider3e5fc5db9eeb
diff --git a/wger/manager/views/ical.py b/wger/manager/views/ical.py
index 2413a1563..5a94c04a0 100644
--- a/wger/manager/views/ical.py
+++ b/wger/manager/views/ical.py
@@ -74,7 +74,7 @@ def get_events_workout(calendar, routine: Routine):
site = Site.objects.get_current()
for day_data in routine.date_sequence:
- if day_data.day.is_rest:
+ if day_data.day is None or day_data.day.is_rest:
continue
event = Event()