Update db_operations.py

This commit is contained in:
ReneKlever 2025-04-13 13:40:36 +02:00 committed by GitHub
parent c18360a1ad
commit 6a04c3f868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ def add_bulletin(board, sender_short_name, subject, content, bbs_nodes, interfac
def get_bulletins(board): def get_bulletins(board):
conn = get_db_connection() conn = get_db_connection()
c = conn.cursor() c = conn.cursor()
c.execute("SELECT id, subject, sender_short_name, date, unique_id FROM bulletins WHERE board = ? COLLATE NOCASE", (board,)) c.execute("SELECT id, subject, sender_short_name, date, unique_id FROM bulletins WHERE board = ? COLLATE NOCASE order by date desc", (board,))
return c.fetchall() return c.fetchall()
def get_hot_bulletins(): def get_hot_bulletins():