dictionary case sensitive fix
This commit is contained in:
@@ -162,6 +162,7 @@ def define():
|
|||||||
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:
|
||||||
dictionary = json.load(data)
|
dictionary = json.load(data)
|
||||||
|
ref = ref.lower()
|
||||||
if not ref in dictionary.keys():
|
if not ref in dictionary.keys():
|
||||||
return "{} not found".format(ref)
|
return "{} not found".format(ref)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user