Subversion Repositories SmartDukaan

Rev

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

Rev 16427 Rev 16430
Line 81... Line 81...
81
        #for missingOrder in missingOrders:
81
        #for missingOrder in missingOrders:
82
        #    missingOrderUrls.append(ORDER_REDIRECT_URL%(missingOrder['merchantOrderId']))
82
        #    missingOrderUrls.append(ORDER_REDIRECT_URL%(missingOrder['merchantOrderId']))
83
        orders = self._getActiveOrders({'userId':userId, "subOrders.trackingUrl":{"$exists":False} }, {"merchantOrderId":1})
83
        orders = self._getActiveOrders({'userId':userId, "subOrders.trackingUrl":{"$exists":False} }, {"merchantOrderId":1})
84
        for order in orders:
84
        for order in orders:
85
            print order
85
            print order
86
            missingOrderUrls.append({"url":"https://paytm.com/shop/orderdetail/%s?actions=1&channel=web&version=2"%(order.get("merchantOrderId")), "referer":order.get("orderSuccessUrl")})
86
            missingOrderUrls.append({"url":"https://paytm.com/shop/orderdetail/%s?actions=1&channel=web&version=2"%(order.get("merchantOrderId")), "referer":"https://paytm.com/myorders/%s"%order.get("merchantOrderId")}  )
87
        return missingOrderUrls
87
        return missingOrderUrls
88
 
88
 
89
    def trackOrdersForUser(self, userId, url, rawHtml):
89
    def trackOrdersForUser(self, userId, url, rawHtml):
90
        merchantOrderId = find_between(rawHtml, "https://paytm.com/shop/orderdetail/","?actions=1&channel=web&version=2")
90
        merchantOrderId = find_between(rawHtml, "https://paytm.com/shop/orderdetail/","?actions=1&channel=web&version=2")
91
        directory = "/PaytmTrack/User" + str(userId)
91
        directory = "/PaytmTrack/User" + str(userId)