aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rwxr-xr-xapp.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/app.py b/app.py
index 7847914..81cfad9 100755
--- a/app.py
+++ b/app.py
@@ -240,6 +240,16 @@ def serve_random():
localimg = "/img/random.jpg?seed=%i" % random.randint(0, 9999)
)
+@app.route("/questions")
+def serve_questions():
+ with database.Database() as db:
+ return flask.render_template(
+ "questions.html.j2",
+ **get_template_items("questions and answers", db),
+ curiouscat_username = db.get_curiouscat_username(),
+ qnas = db.get_curiouscat_qnas()
+ )
+
if __name__ == "__main__":
try:
if sys.argv[1] == "--production":