diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2023-07-07 23:44:04 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-07-07 23:44:04 -0700 |
| commit | 645cacc6790852bad9eb04755b911bd432200c1c (patch) | |
| tree | eff5e4c7be17fad59b477b5f3fd19f3f2c91471a /sql/sql_handler.py | |
| parent | 5c48dcb23ac331a514d5af995edfcddd91e93a6f (diff) | |
fix: bug where data is not recorded into historical table
Diffstat (limited to 'sql/sql_handler.py')
| -rw-r--r-- | sql/sql_handler.py | 2 |
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) |
