diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-03-12 00:50:54 +0100 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-03-12 00:50:54 +0100 |
| commit | 50b26ac9bb1c9b1eaa9f88a9a23303deddb60a46 (patch) | |
| tree | 953864fa02d10474fbd2c98ca502d572a9a742d8 /app.py | |
| parent | f283598c5a6203c11130cc6aacc1a60da21bd0d2 (diff) | |
fixed markdown issue in get_headers()
Diffstat (limited to 'app.py')
| -rwxr-xr-x | app.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
