From c383091a00360458fd587b7aaad60fbdf4e1829b Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Sun, 30 Nov 2025 22:07:04 -0800 Subject: [PATCH] bracket and spacing fix --- contact/utilities/db_handler.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/contact/utilities/db_handler.py b/contact/utilities/db_handler.py index 06d7eb6..1fb14a1 100644 --- a/contact/utilities/db_handler.py +++ b/contact/utilities/db_handler.py @@ -136,15 +136,18 @@ def load_messages_from_db() -> None: elif ack_type == "Nak": ack_str = config.nak_str - ts_str = datetime.fromtimestamp(timestamp).strftime("[%H:%M:%S] ") + ts_str = datetime.fromtimestamp(timestamp).strftime("[%H:%M:%S]") if user_id == str(interface_state.myNodeNum): sanitized_message = message.replace("\x00", "") - formatted_message = (f"[{ts_str}] {config.sent_message_prefix}{ack_str}: ", sanitized_message) + formatted_message = ( + f"{ts_str} {config.sent_message_prefix}{ack_str}: ", + sanitized_message, + ) else: sanitized_message = message.replace("\x00", "") formatted_message = ( - f"{ts_str}{config.message_prefix} {get_name_from_database(int(user_id), 'short')}: ", + f"{ts_str} {config.message_prefix} {get_name_from_database(int(user_id), 'short')}: ", sanitized_message, )