From 3e8f5c46d30b53e6b2a10005b1c11f07c39fd36d Mon Sep 17 00:00:00 2001 From: kevroded Date: Wed, 6 Jan 2021 00:26:27 -0500 Subject: [PATCH] Fixed cache_history --- database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database.py b/database.py index 11db634..56e6ecb 100644 --- a/database.py +++ b/database.py @@ -320,14 +320,14 @@ def add_stats(player_game_stats_list): conn.commit() conn.close() -def cache_history(Team_1, Team_1_Score, Team_2, Team_2_Score): +def cache_history(Team_1, Team_1_Score, Team_2, Team_2_Score, weather): conn = create_connection() - store_string = """ INSERT INTO history(Team_1, Team_1_Score, Team_2, Team_2_Score) + store_string = """ INSERT INTO history(Team_1, Team_1_Score, Team_2, Team_2_Score, Weather) VALUES (?,?,?,?) """ if conn is not None: c = conn.cursor() - c.execute(store_string, (Team_1, Team_1_Score, Team_2, Team_2_Score)) + c.execute(store_string, (Team_1, Team_1_Score, Team_2, Team_2_Score, weather)) conn.commit() conn.close()