Subversion Repositories SmartDukaan

Rev

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

Rev 13927 Rev 13959
Line 124... Line 124...
124
        orders = self._getActiveOrders({'userId':userId})
124
        orders = self._getActiveOrders({'userId':userId})
125
        print "orders", orders
125
        print "orders", orders
126
        count = len(orders)
126
        count = len(orders)
127
        print "count", count
127
        print "count", count
128
        if count > 0:
128
        if count > 0:
129
            return []
129
            return ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled']
130
        else: 
130
        else: 
131
            if self.store_id == 1:
-
 
132
                return ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled']
-
 
133
            else:
-
 
134
                return []
131
            return []
135
            
132
            
136
    def trackOrdersForUser(self, userId, url, rawHtml):
133
    def trackOrdersForUser(self, userId, url, rawHtml):
137
        searchMap = {'userId':userId}
134
        searchMap = {'userId':userId}
138
        self._getActiveOrders(searchMap)
135
        self._getActiveOrders(searchMap)
139
        if url == 'https://www.amazon.in/gp/css/order-history':
136
        if url == 'https://www.amazon.in/gp/css/order-history':