diff --git a/app.py b/app.py index ffc2d22..e1a0839 100644 --- a/app.py +++ b/app.py @@ -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: