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