From 2e206af93c2da12914c967f42caa715171adca7c Mon Sep 17 00:00:00 2001 From: ReneKlever Date: Tue, 8 Apr 2025 19:52:44 +0200 Subject: [PATCH] Update db_operations.py --- db_operations.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db_operations.py b/db_operations.py index 917406b..e5efe6d 100644 --- a/db_operations.py +++ b/db_operations.py @@ -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()