python tool: search case insensitive
This commit is contained in:
parent
860d16f0c8
commit
57df8abd1f
|
@ -9,7 +9,7 @@ import time
|
|||
def listnotes(filter = ""):
|
||||
matching = []
|
||||
for i in reversed(range(len(data))):
|
||||
if filter in data[i]["title"]:
|
||||
if filter.lower() in data[i]["title"].lower():
|
||||
print("[" + str(i) + "]", data[i]["title"])
|
||||
matching.append(data[i])
|
||||
return matching
|
||||
|
|
Loading…
Reference in New Issue