mirror of
https://github.com/pdxlocations/contact.git
synced 2026-05-09 14:54:27 +02:00
cleanup
This commit is contained in:
+3
-3
@@ -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'''
|
||||
|
||||
Reference in New Issue
Block a user