Exemple #1
0
def ajax_be_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_be_comment(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)
def ajax_be_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_be_comment(uid, top_count)
    else:
        results = sensitive_search_be_comment(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)
Exemple #3
0
def ajax_be_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_be_comment(uid, top_count)
    else:
        results = sensitive_search_be_comment(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)