| Line 832... |
Line 832... |
| 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()
|
| 842 |
#store.trackOrdersForUser(10466, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=403-7498756-0837158', readSSh('/AmazonTrack/User10466/403-7498756-0837158'))
|
842 |
#store.trackOrdersForUser(10466, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=403-7498756-0837158', readSSh('/AmazonTrack/User10466/403-7498756-0837158'))
|
| 843 |
#store.trackOrdersForUser(46195, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=404-4294022-1187515', readSSh('/home/amit/amazon.html'))
|
843 |
#store.trackOrdersForUser(46195, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=404-4294022-1187515', readSSh('/home/amit/amazon.html'))
|
| 844 |
|
844 |
|
| 845 |
def getSummaryFile(directory):
|
845 |
def getSummaryFile(directory):
|
| 846 |
date1 = datetime(2015,1,1)
|
846 |
date1 = datetime(2015,1,1)
|