Commit 2feb1618 authored by Magnus Giesbert's avatar Magnus Giesbert
Browse files

fix indentation (spaces->tabs)

parent a7525c00
...@@ -139,11 +139,11 @@ def fetch_ro_course_events(item): ...@@ -139,11 +139,11 @@ def fetch_ro_course_events(item):
args = urllib.parse.parse_qs(url.query) args = urllib.parse.parse_qs(url.query)
if 'pStpSpNr' in args: # Legacy URLs if 'pStpSpNr' in args: # Legacy URLs
id = args['pStpSpNr'][0] id = args['pStpSpNr'][0]
elif len(url.path.split('/')) > 1 and url.path.split('/')[-2] == 'courses': # New URLs elif len(url.path.split('/')) > 1 and url.path.split('/')[-2] == 'courses': # New URLs
id = url.path.split('/')[-1] id = url.path.split('/')[-1]
else: else:
flash("Ungültige URL: '"+url.geturl()+"'") flash("Ungültige URL: '"+url.geturl()+"'")
return [] #cant get events from wrong URL so just return empty list return [] #cant get events from wrong URL so just return empty list
cal = icalendar.Calendar().from_ical(fetch_ro_course_ical(id)) cal = icalendar.Calendar().from_ical(fetch_ro_course_ical(id))
events = [] events = []
for comp in cal.subcomponents: for comp in cal.subcomponents:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment