Prefill all parks and teams

This commit is contained in:
2025-04-11 16:13:50 -04:00
parent 5ce2e90c1a
commit 1234d95510
12 changed files with 5851 additions and 208 deletions

11
main.py
View File

@@ -57,11 +57,16 @@ class NeuralNetwork:
return prediction
if __name__ == '__main__':
sql_file = "./data/build_db.sql"
db_file = "./database/baseball.db"
build_db_path = "./data/sql/build_db.sql"
fill_parks_path = "./data/sql/prefill_parks.sql"
fill_teams_path = "./data/sql/prefill_teams.sql"
db_file = "./database/baseball.db"
db_conn = Database(db_file)
db_conn.build_database(sql_file)
db_conn.run_sql_file(build_db_path)
db_conn.run_sql_file(fill_parks_path)
db_conn.run_sql_file(fill_teams_path)
else:
# create neural network