mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-07 22:22:23 -04:00
Update db_operations.py
This commit is contained in:
parent
c18360a1ad
commit
6a04c3f868
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue