fix: whitespace search bug

This commit is contained in:
2023-01-14 02:27:11 -08:00
parent 86b6f4b979
commit fd88110188
+1
View File
@@ -154,6 +154,7 @@ def ref_parse_book(ref):
@app.get("/define")
def define():
ref = request.args.get("kw", None)
ref = ref.strip()
if not ref:
return send_file("html/dictionary.html")
with open(dictionary_json, 'r') as data: