Subversion Repositories SmartDukaan

Rev

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

Rev 17465 Rev 17480
Line 134... Line 134...
134
                        except:
134
                        except:
135
                            traceback.print_exc()
135
                            traceback.print_exc()
136
                            try:
136
                            try:
137
                                self.parseCancelled(merchantOrder, soup)
137
                                self.parseCancelled(merchantOrder, soup)
138
                                resp['result'] = 'ORDER_CANCELLED'
138
                                resp['result'] = 'ORDER_CANCELLED'
-
 
139
                                return
139
                            except:
140
                            except:
140
                                try:
141
                                try:
141
                                    if soup.find("h1").text.strip() in ["Your Account"] or soup.find("h1").span.text=="Account":
142
                                    if soup.find("h1").text.strip() in ["Your Account"] or soup.find("h1").span.text=="Account":
142
                                        resp['result'] = 'DETAIL_NOT_CREATED_KNOWN'
143
                                        resp['result'] = 'DETAIL_NOT_CREATED_KNOWN'
143
                                    else:
144
                                    else:
Line 753... Line 754...
753
#            o = session.query(OrdersRaw).filter_by(id = orderId).one()
754
#            o = session.query(OrdersRaw).filter_by(id = orderId).one()
754
#            o.status = 'ORDER_CREATED'
755
#            o.status = 'ORDER_CREATED'
755
#            session.commit()
756
#            session.commit()
756
#        finally:
757
#        finally:
757
#            session.close()
758
#            session.close()
758
    store.trackOrdersForUser(2, 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled', readSSh('/AmazonTrack/User2/cancelledSummary13-11:11:25:56'))
759
    store.trackOrdersForUser(12243, 'https://www.amazon.in/gp/css/summary/edit.html?orderID=171-1842941-8579542', readSSh('/AmazonTrack/User12243/171-1842941-8579542'))
759
    
760
    
760
def getSummaryFile(directory):
761
def getSummaryFile(directory):
761
    date1 = datetime(2015,1,1)
762
    date1 = datetime(2015,1,1)
762
    finalFile = None
763
    finalFile = None
763
    try:
764
    try: