Skip to content

Commit ad5ab90

Browse files
committed
Fix incorrectly parsed Special Approvals restrictions
1 parent f07e6df commit ad5ab90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/scrapers/sis_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ async def get_class_restrictions(session: aiohttp.ClientSession, term: str, crn:
392392
continue
393393
next_content_string = next_content.string.strip()
394394
# Stop if another restriction header is encountered
395-
if re.match(restriction_header_pattern, next_content_string):
395+
if re.match(restriction_header_pattern, next_content_string) or re.match(
396+
special_approvals_pattern, next_content_string
397+
):
396398
break
397399
restriction_list.append(next_content_string)
398400
i += 1

0 commit comments

Comments
 (0)