summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorMorgana <Morgana@icolotl.com>2026-09-28 12:36:29 -0500
committerMorgana <Morgana@icolotl.com>2026-09-28 12:36:29 -0500
commit9aa5bb1133985aa87bfe47d25f3ce139b05de2dd (patch)
tree736803bcf243b017e1b3797ca2b5ab8c3b3902fe /app.py
parent7fc188b0a4d73856c05eacc9bdf2a1561505a8d6 (diff)
Added news page
Diffstat (limited to 'app.py')
-rw-r--r--app.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app.py b/app.py
index 79ad458..7869de9 100644
--- a/app.py
+++ b/app.py
@@ -124,3 +124,12 @@ def hydematch():
cur.execute("SELECT * FROM matches ORDER BY id DESC")
results = cur.fetchall()
return render_template("hyde.html", matches=results)
+
+
+@app.route("/news")
+def news():
+ db = get_db()
+ cur = db.cursor()
+ cur.execute("SELECT * FROM news ORDER BY id DESC")
+ results = cur.fetchall()
+ return render_template("news.html", news=results)