From 50b26ac9bb1c9b1eaa9f88a9a23303deddb60a46 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Wed, 12 Mar 2025 00:50:54 +0100 Subject: fixed markdown issue in get_headers() --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 610cf8a..ce48130 100755 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ def get_correct_article_headers(db:database.Database, title): if title in [i[0] for i in db_headers]: out = [] for i in db_headers: - if i != title: + if i[0] != title: out.append(i) return out + [("index", "/~")] else: @@ -69,7 +69,7 @@ def get_thought(): thought_id = flask.request.args.get("id", type=int) with database.Database() as db: try: - title, datetime, redirect, category_name, parsed, headers= parser.get_thought_from_id(db, thought_id) + title, datetime, redirect, category_name, parsed, headers = parser.get_thought_from_id(db, thought_id) except TypeError: flask.abort(404) return -- cgit v1.2.3