aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-02-27 00:05:41 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2023-02-27 00:05:41 +0000
commit7c53f89ccdd92e308d14d069e2e070f7a1c2da26 (patch)
treeb16a2405e88070abe29b909314cfbd5b3d21d2cf /app.py
parent2831eb8af07b1c387f17cf4d9a4b3a1b1aa47bb5 (diff)
downloadeda.gay-7c53f89ccdd92e308d14d069e2e070f7a1c2da26.tar.gz
eda.gay-7c53f89ccdd92e308d14d069e2e070f7a1c2da26.zip
Added q&a page
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 75558f8..556d61a 100755
--- a/app.py
+++ b/app.py
@@ -236,6 +236,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("random image", db),
+ curiouscat_username = db.get_curiouscat_username(),
+ qnas = db.get_curiouscat_qnas()
+ )
+
if __name__ == "__main__":
try:
if sys.argv[1] == "--production":