aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rwxr-xr-xapp.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app.py b/app.py
index e06ac8e..3e0c96b 100755
--- a/app.py
+++ b/app.py
@@ -67,6 +67,15 @@ def index():
def robots():
return flask.send_from_directory("static", "robots.txt")
+@app.route("/diary")
+def diary():
+ with database.Database() as db:
+ return flask.render_template(
+ "diary.html.j2",
+ **get_template_items("diary", db),
+ diary = db.get_diary()
+ )
+
@app.route("/discord")
def discord():
with database.Database() as db: