def get_comments(self, obj_id): return Comment.get_comments_by_id(obj_id)
def getComments(username=None, slug=None, item_id=None): if is_valid_id(item_id): cs = Comment.get_comments_by_id(item_id) return jsonify({'comments': cs}) abort(404)
def getComments(parent_id=None): if is_valid_id(parent_id): cs = Comment.get_comments_by_id(parent_id) return jsonify({'comments': cs}) abort(404)