summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-03-12 00:50:54 +0100
committeryuzu-eva <cafebabe@disroot.org>2025-03-12 00:50:54 +0100
commit50b26ac9bb1c9b1eaa9f88a9a23303deddb60a46 (patch)
tree953864fa02d10474fbd2c98ca502d572a9a742d8 /app.py
parentf283598c5a6203c11130cc6aacc1a60da21bd0d2 (diff)
fixed markdown issue in get_headers()
Diffstat (limited to 'app.py')
-rwxr-xr-xapp.py4
1 files changed, 2 insertions, 2 deletions
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