define landing page fix

This commit is contained in:
2023-01-14 10:12:30 -08:00
parent fd88110188
commit edda26b7b3
+1 -1
View File
@@ -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: