i messed up the merge

This commit is contained in:
0x01FE 2024-03-14 10:39:43 -05:00
parent bb739aa25e
commit 79c5fc95a7

View File

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