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)
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)