Ejemplo n.º 1
0
def ajax_online_pattern():
    uid = request.args.get('uid', '')
    uid = str(uid)
    #run_type
    if RUN_TYPE == 1:
        now_ts = time.time()
    else:
        now_ts = test_time
    results = get_online_pattern(now_ts, uid)
    if not results:
        results = {}
    return json.dumps(results)
Ejemplo n.º 2
0
def ajax_online_pattern():
    uid = request.args.get('uid', '')
    uid = str(uid)
    #run_type
    if RUN_TYPE == 1:
        now_ts = time.time()
    else:
        now_ts = test_time
    results = get_online_pattern(now_ts, uid)
    if not results:
        results = {}
    return json.dumps(results)