def shows_by_name(normalized_name, session=None):
 return session.query(Series).filter(Series._name_normalized.contains(normalized_name)).order_by(func.char_length(Series.name)).all()

def shows_by_name ( normalized_name , session = None ) : return session . query ( Series ) . filter ( Series . _name_normalized . contains ( normalized_name ) ) . order_by ( func . char_length ( Series . name ) ) . all ( )
returns all series matching normalized_name .