From dc018d5d8307b2df9bee413d8067ae38e9c979b4 Mon Sep 17 00:00:00 2001 From: Josh b Date: Thu, 13 Oct 2022 18:08:29 -0700 Subject: [PATCH] working on a filter --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f76b230..138a518 100644 --- a/main.py +++ b/main.py @@ -102,9 +102,9 @@ def main(): # then update window['-TABLE-'].update(values=new_data) else: print(event, values[event]) - filter_database = lambda s: s.find(values[event]) != -1 + filter_database = lambda s: s.lower().find(values[event].lower()) != -1 Computers=Query() - print(db.search(Computers[event[7:]])) + print(db.search(Computers[event[7:]].test(filter_database))) # Finish up by removing from the screen