コード例 #1
0
def sen_ratio():
    topic = request.args.get('topic', '')
    end_ts = request.args.get('end_ts', '')
    end_ts = long(end_ts)
    start_ts = request.args.get('start_ts', '')
    start_ts = long(start_ts)
    time_count = get_sen_ratio(topic, start_ts, end_ts)
    return json.dumps(time_count)
コード例 #2
0
ファイル: views.py プロジェクト: SwoJa/ruman
def sen_ratio():
    topic = request.args.get('topic','')
    end_ts = request.args.get('end_ts', '')
    end_ts = long(end_ts)
    start_ts = request.args.get('start_ts', '')
    start_ts = long(start_ts)
    time_count = get_sen_ratio(topic,start_ts,end_ts)
    return json.dumps(time_count)