Subversion Repositories SmartDukaan

Rev

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

Rev 18377 Rev 18378
Line 831... Line 831...
831
 
831
 
832
def main():
832
def main():
833
    store = getStore(1)
833
    store = getStore(1)
834
    #store.parseOrderRawHtml("444444", '123', 14, readSSh('/home/amit/80444.html'), 'https://www.amazon.in/gp/css/summary/edit.html?orderID=402-1449548-9569169')
834
    #store.parseOrderRawHtml("444444", '123', 14, readSSh('/home/amit/80444.html'), 'https://www.amazon.in/gp/css/summary/edit.html?orderID=402-1449548-9569169')
835
    orders = list(session.query(OrdersRaw).filter_by(status = 'DETAIL_NOT_CREATED_UNKNOWN').filter(OrdersRaw.id > 61071).all())
835
    orders = list(session.query(OrdersRaw).filter_by(status = 'DETAIL_NOT_CREATED_UNKNOWN').filter(OrdersRaw.id > 61071).all())
836
    #session.close()
836
    session.close()
837
    for o in orders:
837
    for o in orders:
838
        try:
838
        try:
839
            store.trackOrdersForUser(o.id, o.order_url, o.rawhtml)
839
            store.trackOrdersForUser(o.id, o.order_url, o.rawhtml)
840
        finally:
840
        finally:
841
            session.close()
841
            session.close()