aboutsummaryrefslogtreecommitdiff
path: root/management/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'management/parsers')
-rw-r--r--management/parsers/ups2018.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/management/parsers/ups2018.py b/management/parsers/ups2018.py
index 805c761..522a26a 100644
--- a/management/parsers/ups2018.py
+++ b/management/parsers/ups2018.py
@@ -87,15 +87,15 @@ class Parser(AbstractParser):
if event_year != year or event_week != week:
return
- course = Course.objects.create(
- source=self.source, begin=begin, end=end
- )
-
data = event["text"].split("<br>")
rooms = None
if data[0] == "Global Event":
return
+ course = Course.objects.create(
+ source=self.source, begin=begin, end=end
+ )
+
min_i = 0
if len(data) > 0 and re.match("^\(\d+:\d+-\d+:\d+\)$", data[0]):
min_i = 1