i messed up the merge
This commit is contained in:
parent
bb739aa25e
commit
79c5fc95a7
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user