def ajax_mention(): uid = request.args.get("uid", "") uid = str(uid) now_ts = time.time() # test now_ts = test_time results = search_mention(now_ts, uid) return json.dumps(results)
def ajax_mention(): uid = request.args.get('uid', '') uid = str(uid) top_count = request.args.get('top_count', SOCIAL_DEFAULT_COUNT) top_count = int(top_count) #run_type if RUN_TYPE == 1: now_ts = time.time() else: now_ts = test_time results = search_mention(now_ts, uid, top_count) return json.dumps(results)