def get_comments(entity): return comment_service.get_all_comments_by_ancestor( entity.key, sort=[-Comment.created], filter=[ ndb.OR(ndb.AND(Comment.spam, Comment.approved), Comment.approved) ])
def get_comments(entity): return comment_service.get_all_comments_by_ancestor(entity.key, sort=[-Comment.created], filter=[ndb.OR(ndb.AND(Comment.spam, Comment.approved), Comment.approved)])
def get_comments(entity): return comment_service.get_all_comments_by_ancestor(entity.key, sort=[-Comment.created], filters=[Comment.approved is True])
def get_comments(entity): return comment_service.get_all_comments_by_ancestor( entity.key, sort=[-Comment.created], filters=[Comment.approved is True])