diff --git a/BookingSystem/db.py b/BookingSystem/db.py index 5e78789..d55d17a 100644 --- a/BookingSystem/db.py +++ b/BookingSystem/db.py @@ -1,6 +1,8 @@ import sqlite3 from pathlib import Path +import markupsafe + from __init__ import DATABASE, logger @@ -31,10 +33,7 @@ def get(key: str) -> str: value = con.execute('SELECT value FROM settings WHERE name = ?', (key,)).fetchone() con.close() - if not value: - return '' - - return value[0] + return markupsafe.Markup(value[0]) if value else '' @staticmethod def set(key: str, value: str) -> None: diff --git a/BookingSystem/templates/forms/bulletin.html b/BookingSystem/templates/forms/bulletin.html index 52b3c64..aea1082 100644 --- a/BookingSystem/templates/forms/bulletin.html +++ b/BookingSystem/templates/forms/bulletin.html @@ -1,6 +1,7 @@
-