diff options
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |