Skip to content

Commit

Permalink
Modified comments
Browse files Browse the repository at this point in the history
  • Loading branch information
meezlung committed Dec 18, 2024
1 parent f0cd1ea commit 9373fdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crs_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def set_urls() -> Response:
def scrape() -> Response:
global crs_username_global, crs_password_global, all_course_table_schedule_url

# TODO: There should be a CRS scraper class that will authenticate the urls
if not all_course_table_schedule_url:
# Return a failure response with a 400 status code using make_response
response = make_response(jsonify({"message": "No course links set yet", "status": "failure"}), 400)
Expand All @@ -105,8 +104,8 @@ def scrape() -> Response:
app.logger.debug(f"Scraping data for {crs_username_global} with course links {all_course_table_schedule_url}!")

# ----------------------------------------------------------------
crs_scraper = CRScraper(login_url, crs_username_global, crs_password_global, all_course_table_schedule_url) # This should replace the crscraper variable once the crscraper is working
data = crs_scraper.main() # This should replace the data variable once the crscraper is working
crs_scraper = CRScraper(login_url, crs_username_global, crs_password_global, all_course_table_schedule_url)
data = crs_scraper.main()
# ----------------------------------------------------------------

app.logger.debug(f"Data scraped successfully! {data}")
Expand Down

0 comments on commit 9373fdd

Please sign in to comment.