Subversion Repositories SmartDukaan

Rev

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

Rev 18156 Rev 18157
Line 775... Line 775...
775
 
775
 
776
 
776
 
777
def main():
777
def main():
778
    store = getStore(1)
778
    store = getStore(1)
779
    #store.parseOrderRawHtml("444444", '123', 14, readSSh('/home/amit/amazon.html'), 'https://www.amazon.in/gp/css/summary/edit.html?orderID=404-4294022-1187515')
779
    #store.parseOrderRawHtml("444444", '123', 14, readSSh('/home/amit/amazon.html'), 'https://www.amazon.in/gp/css/summary/edit.html?orderID=404-4294022-1187515')
780
    #[59433, 59472, 59487, 59503, 59545, 59549, 59573, 59591]
-
 
781
    orders = list(session.query(OrdersRaw).filter_by(status = 'DETAIL_NOT_CREATED_UNKNOWN').filter(OrdersRaw.id > 61071).all())
780
    orders = list(session.query(OrdersRaw).filter_by(status = 'DETAIL_NOT_CREATED_UNKNOWN').filter(OrdersRaw.id > 61071).all())
782
    session.close()
781
    session.close()
783
    for o in orders:
782
    for o in orders:
784
        try:
783
        try:
785
            store.trackOrdersForUser(o.id, o.order_url, o.rawhtml)
784
            store.trackOrdersForUser(o.id, o.order_url, o.rawhtml)
Line 910... Line 909...
910
    
909
    
911
if __name__ == '__main__':
910
if __name__ == '__main__':
912
#    readSSh("/AmazonTrack/User2942/402-2467356-7564367")
911
#    readSSh("/AmazonTrack/User2942/402-2467356-7564367")
913
#    readSSh("/AmazonTrack/User10466/orderSummary18-11:21:32:36")
912
#    readSSh("/AmazonTrack/User10466/orderSummary18-11:21:32:36")
914
#    readSSh("/AmazonTrack/User5525/171-0333104-6169933")
913
#    readSSh("/AmazonTrack/User5525/171-0333104-6169933")
915
    #main()
914
    main()
916
    store=getStore(1)
915
    #store=getStore(1)
917
    store.trackOrdersForUser(5525, "https://www.amazon.in/gp/css/summary/edit.html?orderID=171-0333104-6169933", readSSh("/AmazonTrack/User5525/171-0333104-6169933"))
916
    #store.trackOrdersForUser(5525, "https://www.amazon.in/gp/css/summary/edit.html?orderID=171-0333104-6169933", readSSh("/AmazonTrack/User5525/171-0333104-6169933"))