From e54456928ea5020ec74da6c34cdb6dd3db72e232 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 14 Jan 2023 18:41:34 -0800 Subject: [PATCH] /show landing page; default result selection --- app.py | 7 ++++++- html/dictionary.html | 2 +- html/search.html | 2 +- html/show.html | 17 +++++++++++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 html/show.html diff --git a/app.py b/app.py index 3950ec2..1f396f8 100644 --- a/app.py +++ b/app.py @@ -11,6 +11,9 @@ DEBUG = 0 """ To-do: Styles +Bible Reading Plan +Bible Viewer +fix Multiple Reference resolving /show """ def dbg(message): @@ -189,7 +192,9 @@ def return_dict_rich(ref, defs): @app.get("/show") def show(): - ref = request.args.get("kw", "John 3:16") + ref = request.args.get("kw", None) + if ref is None: + return send_file("html/show.html") dbg("show({})".format(ref)) ref = ref_input_cleaning(ref) if not ref: diff --git a/html/dictionary.html b/html/dictionary.html index 2a49758..6323ec6 100644 --- a/html/dictionary.html +++ b/html/dictionary.html @@ -4,7 +4,7 @@