| Line 85... |
Line 85... |
| 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":"https://paytm.com/myorders/%s"%order.get("merchantOrderId")} )
|
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(url, "https://paytm.com/shop/orderdetail/","?actions=1&channel=web&version=2")
|
| 91 |
directory = "/PaytmTrack/User" + str(userId)
|
91 |
directory = "/PaytmTrack/User" + str(userId)
|
| 92 |
if not os.path.exists(directory):
|
92 |
if not os.path.exists(directory):
|
| 93 |
os.makedirs(directory)
|
93 |
os.makedirs(directory)
|
| 94 |
|
94 |
|
| 95 |
executeBulk = False
|
95 |
executeBulk = False
|