Subversion Repositories SmartDukaan

Rev

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

Rev 13873 Rev 13879
Line 119... Line 119...
119
    #This should be exposed from api for specific sources
119
    #This should be exposed from api for specific sources
120
    def scrapeStoreOrders(self):
120
    def scrapeStoreOrders(self):
121
        pass
121
        pass
122
    
122
    
123
    def getTrackingUrls(self, userId):
123
    def getTrackingUrls(self, userId):
124
        count = len(self._getActiveOrders({'userId':userId}))
124
        orders = self._getActiveOrders({'userId':userId})
-
 
125
        print "orders", orders
-
 
126
        count = len
125
        print count
127
        print "count", count
126
        if count > 0:
128
        if count > 0:
127
            return []
129
            return []
128
        else: 
130
        else: 
129
            if self.store_id == 1:
131
            if self.store_id == 1:
130
                return ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled']
132
                return ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled']