define landing page fix
This commit is contained in:
@@ -154,7 +154,7 @@ def ref_parse_book(ref):
|
|||||||
@app.get("/define")
|
@app.get("/define")
|
||||||
def define():
|
def define():
|
||||||
ref = request.args.get("kw", None)
|
ref = request.args.get("kw", None)
|
||||||
ref = ref.strip()
|
if ref: ref = ref.strip()
|
||||||
if not ref:
|
if not ref:
|
||||||
return send_file("html/dictionary.html")
|
return send_file("html/dictionary.html")
|
||||||
with open(dictionary_json, 'r') as data:
|
with open(dictionary_json, 'r') as data:
|
||||||
|
|||||||
Reference in New Issue
Block a user