/show landing page; default result selection

This commit is contained in:
2023-01-14 18:41:34 -08:00
parent edda26b7b3
commit e54456928e
4 changed files with 25 additions and 3 deletions
+6 -1
View File
@@ -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: