How could I make this query be case insensitive?
result = db.session.query(countries).filter_by(name=country,capital=capital).first()
Im using Flask SQL-Alchemy by the way. I can do db.func.lower() but I havent found a way to use it properly in my line yet.