define landing page fix

This commit is contained in:
tyler committed 2023-01-14 10:12:30 -08:00
1 parent fd88110188
commit edda26b7b3
1 file changed
+1 -1
+1 -1
View File
@@ -154,7 +154,7 @@ def ref_parse_book(ref):
@app.get("/define")
def define():
ref = request.args.get("kw", None)
ref = ref.strip()
if ref: ref = ref.strip()
if not ref:
return send_file("html/dictionary.html")
with open(dictionary_json, 'r') as data: