Пример #1
0
def ajax_comment():
    uid = request.args.get('uid', '')
    uid = str(uid)
    top_count = request.args.get('top_count', SOCIAL_DEFAULT_COUNT)
    top_count = int(top_count)
    results = search_comment(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)
def ajax_comment():
    uid = request.args.get('uid', '')
    uid = str(uid)
    top_count = request.args.get('top_count', SOCIAL_DEFAULT_COUNT)
    top_count = int(top_count)
    sensitive = request.args.get("sensitive", 0)
    if int(sensitive) == 0:
        results = search_comment(uid, top_count)
    else:
        results = sensitive_search_comment(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)
Пример #3
0
def ajax_comment():
    uid = request.args.get('uid', '')
    uid = str(uid)
    top_count = request.args.get('top_count', SOCIAL_DEFAULT_COUNT)
    top_count = int(top_count)
    sensitive = request.args.get("sensitive", 0)
    if int(sensitive) == 0:
        results = search_comment(uid, top_count)
    else:
        results = sensitive_search_comment(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)