From f0494c4ea6bc00c870f1a2e69aee30bb87ab8fe7 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Sun, 12 Jan 2025 19:43:18 -0800 Subject: [PATCH] cleanup --- database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database.py b/database.py index 9d924c6..9ac10a9 100644 --- a/database.py +++ b/database.py @@ -38,9 +38,9 @@ def init_nodedb(): db_connection.commit() except sqlite3.Error as e: - print(f"SQLite error in init_and_update_nodedb: {e}") + print(f"SQLite error in init_nodedb: {e}") except Exception as e: - print(f"Unexpected error in init_and_update_nodedb: {e}") + print(f"Unexpected error in init_nodedb: {e}") def save_message_to_db(channel, user_id, message_text): @@ -51,7 +51,7 @@ def save_message_to_db(channel, user_id, message_text): # Construct the table name table_name = f"{str(get_nodeNum())}_{channel}_messages" - quoted_table_name = f'"{table_name}"' # Quote the table name becuase we begin with numerics + quoted_table_name = f'"{table_name}"' # Quote the table name becuase we begin with numerics and contain spaces # Ensure the table exists create_table_query = f'''