I want to search my database table without case sensitive letters
I copied the code from the tutorial, but the tutorial is case sensitive.(Database Search and Filter) I think
@anvil.server.callable
def search_genetic(query):
result = app_tables.genetic.search()
if query:
result = [
x for x in result
if query in x[‘brand’]
or query in x[‘name’]
or query in x[‘genetic’]
]
return result
Also here is the tutorial on how to use the database engine queries that are very fast and powerful.
There is even an app to clone at the bottom of that page that gives you live syntax in action with a clone link: