Skip to content

Commit

Permalink
fix spaces in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
rhotertj committed Jun 4, 2024
1 parent 3ea83a6 commit e13e465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/crawl_concurrently.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ def crawl_competition(uri, season, results, association, competition, from_date)
"%Y-%m-%d-T%H+%M+%S"
)
os.makedirs(data_path / f"{season}", exist_ok=True)
fn = data_path / f"{season}" / f"{a}_{c}_{time_str}.json"
fn = str(fn).replace(" ", "-")
with open(
data_path / f"{season}" / f"{a}_{c}_{time_str}.json",
fn,
"w+",
) as f:
json.dump(data, f)
Expand Down

0 comments on commit e13e465

Please sign in to comment.