From 79c5fc95a7421fee56ec29953ae1e93a8d58d690 Mon Sep 17 00:00:00 2001 From: 0x01FE <0x10FE@0x01fe.net> Date: Thu, 14 Mar 2024 10:39:43 -0500 Subject: [PATCH] i messed up the merge --- app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index 099bc73..82cf16f 100644 --- a/app/app.py +++ b/app/app.py @@ -47,12 +47,12 @@ def get_posts(category_filter : str | None = None) -> list[Post]: return reversed(ordered_posts) def get_status() -> str: - with open(STATUS_FILE, 'r') as file: + with open(STATUS_FILE, 'r', encoding='utf-8') as file: statuses = file.readlines() status = random.randint(0, len(statuses) - 1) - return statuses[status] + return markdown.markdown(statuses[status]) @app.route('/') def index():