Subversion Repositories SmartDukaan

Rev

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

Rev 17359 Rev 17360
Line 778... Line 778...
778
                session.commit()
778
                session.commit()
779
            if order.get('status')=="cancelled" and (o.status != 'ORDER_CANCELLED'): 
779
            if order.get('status')=="cancelled" and (o.status != 'ORDER_CANCELLED'): 
780
                o.status='ORDER_CANCELLED'
780
                o.status='ORDER_CANCELLED'
781
                print o.status
781
                print o.status
782
                session.commit()
782
                session.commit()
783
                
-
 
784
            #store.parseOrderRawHtml(o.id, o.sub_tag, o.user_id, o.rawhtml, order['orderTrackingUrl'])
783
            #store.parseOrderRawHtml(o.id, o.sub_tag, o.user_id, o.rawhtml, order['orderTrackingUrl'])
785
        except:
784
        except:
786
            print "Could not parse", orderId
785
            print "Could not parse", orderId
787
    
786
        finally:
-
 
787
            session.close()
788
    #store.trackOrdersForUser(8703, 'https://www.amazon.in/gp/css/order-history', readSSh('/home/amit/Downloads/orderSummary06-10_12_15_54'))
788
    #store.trackOrdersForUser(8703, 'https://www.amazon.in/gp/css/order-history', readSSh('/home/amit/Downloads/orderSummary06-10_12_15_54'))
789
    
789
    
790
def getSummaryFile(directory):
790
def getSummaryFile(directory):
791
    date1 = datetime(2015,1,1)
791
    date1 = datetime(2015,1,1)
792
    finalFile = None
792
    finalFile = None