From 853b1669d14a8a3db62be09c4ac01657ac147b07 Mon Sep 17 00:00:00 2001 From: Rafael Belokurows Date: Wed, 17 Apr 2024 17:27:13 +0100 Subject: [PATCH] Update scrape-baseball-games.py --- scrape-baseball-games.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape-baseball-games.py b/scrape-baseball-games.py index 6512683f..b89f8a21 100644 --- a/scrape-baseball-games.py +++ b/scrape-baseball-games.py @@ -70,5 +70,5 @@ def game_odds(): # Concatenate the resulting DataFrames into a single DataFrame run_odds = pd.concat(result_dfs, ignore_index=True) -run_odds.to_csv("data/baseballrunodds"+strftime("%Y%m%d%H%M", gmtime())+".csv",index=False) -games.to_csv("data/baseballgames"+strftime("%Y%m%d%H%M", gmtime())+".csv",index=False) +run_odds.to_csv("data/2024/baseballrunodds"+strftime("%Y%m%d%H%M", gmtime())+".csv",index=False) +games.to_csv("data/2024/baseballgames"+strftime("%Y%m%d%H%M", gmtime())+".csv",index=False)