python tool: search case insensitive

This commit is contained in:
quenousimporte 2023-09-14 14:30:04 +02:00
parent 860d16f0c8
commit 57df8abd1f
1 changed files with 1 additions and 1 deletions

View File

@ -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