From 57790740f56fe07c8905c6e0b688e3520fdd75c6 Mon Sep 17 00:00:00 2001 From: powe97 <116031952+powe97@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:54:54 -0400 Subject: [PATCH] Lint --- scrapers/sis_scraper/main.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scrapers/sis_scraper/main.py b/scrapers/sis_scraper/main.py index 572babb2..69ccea70 100644 --- a/scrapers/sis_scraper/main.py +++ b/scrapers/sis_scraper/main.py @@ -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: (.*?)\n", str(data)) - if(dates_rgx): + dates_rgx = re.search(r"Registration Dates: (.*?)\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(