Ejemplo n.º 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)
Ejemplo n.º 2
0
Archivo: views.py Proyecto: 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)