From 7b5bde447a0a7318b3c3764a169bd357acceacb6 Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Mon, 19 Feb 2024 13:13:29 -0500 Subject: [PATCH] hotfix: process_data.py fix incorrect database ref --- .gitignore | 1 + app/scoreboard/process_data.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 09d6e93..5a9ad5a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /__pycache__ /app/__pycache__ /app/scoreboard/__pycache__ +nhl_standings.db diff --git a/app/scoreboard/process_data.py b/app/scoreboard/process_data.py index 74f9eeb..0d3dd0a 100644 --- a/app/scoreboard/process_data.py +++ b/app/scoreboard/process_data.py @@ -122,7 +122,7 @@ def calculate_game_priority(game): return final_priority def get_team_standings(team_name): - conn = sqlite3.connect("nhl_standings.db") + conn = sqlite3.connect("app/data/nhl_standings.db") cursor = conn.cursor() cursor.execute(""" SELECT league_sequence, league_l10_sequence