created lambda filter function

This commit is contained in:
Joe Stanley 2022-10-13 18:02:06 -07:00
parent d88057366b
commit af37a81d1f

View File

@ -102,8 +102,9 @@ def main():
# then update window['-TABLE-'].update(values=new_data) # then update window['-TABLE-'].update(values=new_data)
else: else:
print(event, values[event]) print(event, values[event])
filter_database = lambda s: s.find(values[event]) != -1
Computers=Query() Computers=Query()
print(db.search(Computers[event[7:]].find(values[event])!=-1)) print(db.search(Computers[event[7:]]))
# Finish up by removing from the screen # Finish up by removing from the screen