Bug #75 message.lower() breaks adding channels. Add a fix for all lower case board names not showing up.

This commit is contained in:
Shaun Mcbride 2024-08-23 15:50:25 -05:00
parent b778b8b6cd
commit 6a9c90a0f4
3 changed files with 13 additions and 11 deletions

View file

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