aboutsummaryrefslogtreecommitdiffstats
path: root/sql/sql_handler.py
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-07-07 23:44:04 -0700
committerPinapelz <donaldshan1@outlook.com>2023-07-07 23:44:04 -0700
commit645cacc6790852bad9eb04755b911bd432200c1c (patch)
treeeff5e4c7be17fad59b477b5f3fd19f3f2c91471a /sql/sql_handler.py
parent5c48dcb23ac331a514d5af995edfcddd91e93a6f (diff)
fix: bug where data is not recorded into historical table
Diffstat (limited to 'sql/sql_handler.py')
-rw-r--r--sql/sql_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_handler.py b/sql/sql_handler.py
index a02db52..7260b0e 100644
--- a/sql/sql_handler.py
+++ b/sql/sql_handler.py
@@ -62,7 +62,7 @@ class SQLHandler:
query = f"INSERT INTO {name} ({column}) VALUES ({placeholders})"
cursor.execute(query, data)
self.connection.commit()
- print("Data Inserted:", data)
+ print("Data Inserted:", data, "into", name)
except Error as err:
print("Error inserting data")
print(err)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage