diff --git a/aleksis/apps/chronos/util/build.py b/aleksis/apps/chronos/util/build.py index fef33a8986541e877dc7e02cec22ce064b4f968c..ec9950665064052b33a40dcce48d1f02d02bff32 100644 --- a/aleksis/apps/chronos/util/build.py +++ b/aleksis/apps/chronos/util/build.py @@ -81,12 +81,11 @@ def build_timetable(type_: str, pk: int, week: CalendarWeek): cols = [] for weekday in range(TimePeriod.weekday_min, TimePeriod.weekday_max + 1): col = [] - if row["type"] == "period": - # Add lesson periods - if period in lesson_periods_per_period: - if weekday in lesson_periods_per_period[period]: - col += lesson_periods_per_period[period][weekday] + # Add lesson periods + if period in lesson_periods_per_period: + if weekday in lesson_periods_per_period[period]: + col += lesson_periods_per_period[period][weekday] cols.append(col)