This commit is contained in:
pdxlocations
2025-01-12 19:43:18 -08:00
parent c5dc867633
commit f0494c4ea6
+3 -3
View File
@@ -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'''