Skip to content
Snippets Groups Projects
Verified Commit 23096f22 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Remove superfluous check in timetable builder

parent 2b32cd27
No related branches found
No related tags found
1 merge request!47Advanced data in timetable views
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment