Update db_operations.py

This commit is contained in:
ReneKlever 2025-04-08 19:52:44 +02:00 committed by GitHub
parent fb7b0dc4ff
commit 2e206af93c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()