コード例 #1
0
ファイル: activity.py プロジェクト: jincm/zuohaoshi_server
def del_activity_comment(post_type, post_id, comment_id):
    app.logger.debug("request:[%s],[%s],[%s]\n" % (request.headers, request.args, request.json))
    app.logger.debug("type:[%s,%s,%s],user:%s\n" % (post_type, post_id, comment_id, current_user.user_id))

    activity = Activity(current_user.user_id, post_type, post_id)
    ret = activity.del_comment(comment_id)
    app.logger.debug("post_activity_comment:%s" % ret)
    return jsonify(ret)