mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-07 14:12:19 -04:00
Update db_operations.py
This commit is contained in:
parent
fb7b0dc4ff
commit
2e206af93c
1 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,12 @@ def get_bulletins(board):
|
|||
c.execute("SELECT id, subject, sender_short_name, date, unique_id FROM bulletins WHERE board = ? COLLATE NOCASE", (board,))
|
||||
return c.fetchall()
|
||||
|
||||
def get_hot_bulletin():
|
||||
conn = get_db_connection()
|
||||
c = conn.cursor()
|
||||
c.execute("SELECT date FROM bulletins order by date desc")
|
||||
return c.fetchone()
|
||||
|
||||
def get_bulletin_content(bulletin_id):
|
||||
conn = get_db_connection()
|
||||
c = conn.cursor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue