示例#1
0
def ajax_follower():
    uid = request.args.get("uid", "")
    uid = str(uid)
    results = search_follower(uid)
    if results:
        return json.dumps(results)
    else:
        return None
示例#2
0
def ajax_follower():
    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_follower(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)
def ajax_follower():
    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_follower(uid, top_count)
    else:
        results = sensitive_search_follower(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)
示例#4
0
def ajax_follower():
    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_follower(uid, top_count)
    else:
        results = sensitive_search_follower(uid, top_count)
    if not results:
        results = {}
    return json.dumps(results)