Skip to content

Commit

Permalink
chore: gh action debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Feb 6, 2024
1 parent c28336f commit df9c184
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nfl_analytics/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@


def download_data(years=range(1999, 2024)):
print(THIS_DIR)
print(DATA_DIR)
DATA_DIR = DATA_DIR_
os.makedirs(DATA_DIR, exist_ok=True)

for year in years:
Expand All @@ -30,7 +33,7 @@ def download_data(years=range(1999, 2024)):
url = f"https://github.com/nflverse/nflverse-data/releases/download/pbp/{filename}"
save_path = os.path.join(DATA_DIR, filename)

print(f"Downloading {url}")
print(f"Downloading {url} to {save_path}...")

try:
urllib.request.urlretrieve(url, save_path)
Expand Down

0 comments on commit df9c184

Please sign in to comment.