Beispiel #1
0
def ajax_hot_recommend_tweets():

    xnr_user_no = request.args.get('xnr_user_no','') # 当前虚拟人 
    topic_field = request.args.get('topic_field','') # 默认...
    sort_item = request.args.get('sort_item','timestamp')  # timestamp-按时间, finish_status-按事件完成度,event_weight-按事件权重
    tweets = get_hot_recommend_tweets(xnr_user_no,topic_field,sort_item)
    return json.dumps(tweets)
Beispiel #2
0
def ajax_hot_recommend_tweets():

    xnr_user_no = request.args.get('xnr_user_no','') # 当前虚拟人 
    topic_field = request.args.get('topic_field','') # 默认...
    sort_item = request.args.get('sort_item','timestamp')  # timestamp-按时间, sensitive-按敏感度
    tweets = get_hot_recommend_tweets(xnr_user_no,topic_field,sort_item)
    return json.dumps(tweets)