mirror of
https://github.com/pdxlocations/contact.git
synced 2026-07-06 09:51:34 +02:00
ok to show duplicate messages from db
This commit is contained in:
+1
-2
@@ -124,8 +124,7 @@ def load_messages_from_db():
|
||||
else:
|
||||
formatted_message = (f"{globals.message_prefix} {get_name_from_number(int(user_id), 'short')}: ", message)
|
||||
|
||||
if formatted_message not in globals.all_messages[channel]:
|
||||
globals.all_messages[channel].append(formatted_message)
|
||||
globals.all_messages[channel].append(formatted_message)
|
||||
|
||||
except sqlite3.Error as e:
|
||||
print(f"SQLite error while loading messages from table '{table_name}': {e}")
|
||||
|
||||
Reference in New Issue
Block a user