working on a filter
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good

This commit is contained in:
Josh Biltonen 2022-10-13 18:08:29 -07:00
parent af37a81d1f
commit dc018d5d83

View File

@ -102,9 +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 filter_database = lambda s: s.lower().find(values[event].lower()) != -1
Computers=Query() Computers=Query()
print(db.search(Computers[event[7:]])) print(db.search(Computers[event[7:]].test(filter_database)))
# Finish up by removing from the screen # Finish up by removing from the screen