From 57df8abd1fa04c21984ff336ccbfa55f99ca8f2f Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 14 Sep 2023 14:30:04 +0200 Subject: [PATCH] python tool: search case insensitive --- cli/python/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/python/app.py b/cli/python/app.py index dc8e55d..09eef83 100644 --- a/cli/python/app.py +++ b/cli/python/app.py @@ -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