flask-sqlalchemy filter_by contains
snippet in sql

flask-sqlalchemy filter_by contains

user1908

games = Game.query.filter(Game.players.contains(p)).order_by(Game.some_field).all()