Exemple #1
0
 def get_comments(self, obj_id):
     return Comment.get_comments_by_id(obj_id)
Exemple #2
0
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)
Exemple #3
0
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)