Subversion Repositories SmartDukaan

Rev

Rev 17666 | Rev 17704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17666 Rev 17670
Line 772... Line 772...
772
    store = getStore(1)
772
    store = getStore(1)
773
    #[59433, 59472, 59487, 59503, 59545, 59549, 59573, 59591]
773
    #[59433, 59472, 59487, 59503, 59545, 59549, 59573, 59591]
774
    for orderId in [60198]:
774
    for orderId in [60198]:
775
        try:
775
        try:
776
            o = session.query(OrdersRaw).filter_by(id = orderId).one()
776
            o = session.query(OrdersRaw).filter_by(id = orderId).one()
777
            store.parseOrderRawHtml(o.id, o.sub_tag, o.user_id, o.rawhtml, o.order_url)
777
            store.trackOrdersForUser(o.id, o.order_url, o.rawhtml)
778
        finally:
778
        finally:
779
            session.close()
779
            session.close()
780
    #store.trackOrdersForUser(10466, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=403-7498756-0837158', readSSh('/AmazonTrack/User10466/403-7498756-0837158'))
780
    #store.trackOrdersForUser(10466, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=403-7498756-0837158', readSSh('/AmazonTrack/User10466/403-7498756-0837158'))
781
    #store.trackOrdersForUser(9031, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=403-0812780-9465164', readSSh('/home/amit/sample.html'))
781
    #store.trackOrdersForUser(9031, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=403-0812780-9465164', readSSh('/home/amit/sample.html'))
782
    
782