Skip to content

Commit

Permalink
Merge pull request #577 from biglocalnews/stucka-patch-2
Browse files Browse the repository at this point in the history
Patch OR #139
  • Loading branch information
stucka authored Sep 25, 2023
2 parents 540be09 + 47826f2 commit a4b5484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions warn/scrapers/or.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def scrape(
logger.debug(f"Found latest data's URL at {excelurl}")
if not excelurl:
logger.error("No URL could be found for the newest spreadsheet.")
latest_excel_path = str(cache_dir) + "/or/latest.xlsx"
logger.debug(latest_excel_path)
latest_excel_path = "or/latest.xlsx"
logger.debug(f"Trying to save to, we hope, {cache_dir/latest_excel_path}")
cache.download(latest_excel_path, excelurl)

workbook = load_workbook(filename=latest_excel_path)
workbook = load_workbook(filename=cache_dir/latest_excel_path)
worksheet = workbook.worksheets[0]

masterlist: list = []
Expand Down

0 comments on commit a4b5484

Please sign in to comment.