| Line 213... |
Line 213... |
| 213 |
if paidAmount==int(offer.get("saleAmount")) and timestamp1 <= saleTime and timestamp1 + 120 >= saleTime:
|
213 |
if paidAmount==int(offer.get("saleAmount")) and timestamp1 <= saleTime and timestamp1 + 120 >= saleTime:
|
| 214 |
i = column
|
214 |
i = column
|
| 215 |
worksheet1.write(roww, inc(), offer.get("saleDate"))
|
215 |
worksheet1.write(roww, inc(), offer.get("saleDate"))
|
| 216 |
worksheet1.write(roww, inc(), offer.get("saleAmount"))
|
216 |
worksheet1.write(roww, inc(), offer.get("saleAmount"))
|
| 217 |
worksheet1.write(roww, inc(), offer.get("payOut"))
|
217 |
worksheet1.write(roww, inc(), offer.get("payOut"))
|
| 218 |
worksheet1.write(roww, 16, offer.get("payOut"))
|
- |
|
| 219 |
del notReconciled[order[0]]
|
218 |
del notReconciled[order[0]]
|
| 220 |
print "found match for user", order[1]
|
219 |
print "found match for user", order[1]
|
| 221 |
db.snapdealOrderAffiliateInfo.update({"adId":offer.get("adId")}, {"$set":{"reconciled":True}}, multi=True)
|
220 |
db.snapdealOrderAffiliateInfo.update({"adId":offer.get("adId")}, {"$set":{"reconciled":True}}, multi=True)
|
| 222 |
db.merchantOrder.update({"orderId":order[0]}, {"$set":{"reconciled":True}}, multi=True)
|
221 |
db.merchantOrder.update({"orderId":order[0]}, {"$set":{"reconciled":True}}, multi=True)
|
| 223 |
break
|
222 |
break
|