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'''