Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
powe97 committed Oct 16, 2023
1 parent ba23962 commit 5779074
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scrapers/sis_scraper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,11 @@ async def get_class_information(class_url):

# Get registration start and end dates, unless they don't exist/are hidden for
# some reason (this happened with arch planning course)
dates_rgx= re.search(r"Registration Dates: </span>(.*?)\n", str(data))
if(dates_rgx):
dates_rgx = re.search(r"Registration Dates: </span>(.*?)\n", str(data))
if dates_rgx:
registration_dates = tuple(
datetime.strptime(d.strip(), "%b %d, %Y")
for d in (
dates_rgx
.group(1)
.split(" to ")
)
for d in (dates_rgx.group(1).split(" to "))
)

meeting_times = data.findAll(
Expand Down

0 comments on commit 5779074

Please sign in to comment.