Ejemplo n.º 1
0
def ajax_lookup_hot_posts():
    from_ts = request.args.get('from_ts', '')
    to_ts = request.args.get('to_ts', '')
    xnr_no = request.args.get('xnr_no', '')
    classify_id = int(request.args.get('classify_id', ''))
    order_id = int(request.args.get('order_id', ''))
    result = lookup_hot_posts(float(from_ts), float(to_ts), xnr_no,
                              classify_id, order_id)
    return json.dumps(result)
Ejemplo n.º 2
0
def ajax_lookup_hot_posts():
    from_ts = request.args.get('from_ts', '')
    to_ts = request.args.get('to_ts', '')
    print 'from_ts, to_ts:', from_ts, to_ts
    weiboxnr_id = request.args.get('weiboxnr_id', '')
    classify_id = int(request.args.get('classify_id', ''))
    order_id = int(request.args.get('order_id', ''))
    result = lookup_hot_posts(float(from_ts), float(to_ts), weiboxnr_id,
                              classify_id, order_id)
    return json.dumps(result)