| Line 555... |
Line 555... |
| 555 |
for offer in db.shopcluesOrderAffiliateInfo.find({"reconciled":{"$exists":False},
|
555 |
for offer in db.shopcluesOrderAffiliateInfo.find({"reconciled":{"$exists":False},
|
| 556 |
"transactionTime":{"$gt":int(time.mktime(last30Days.timetuple())),
|
556 |
"transactionTime":{"$gt":int(time.mktime(last30Days.timetuple())),
|
| 557 |
"$lt":int(time.mktime(date.today().timetuple()))}} ):
|
557 |
"$lt":int(time.mktime(date.today().timetuple()))}} ):
|
| 558 |
subTagId = offer.get("subTagId")
|
558 |
subTagId = offer.get("subTagId")
|
| 559 |
saleTime = offer.get("transactionTime")
|
559 |
saleTime = offer.get("transactionTime")
|
| 560 |
orders = getOrdersByTag(subTagId, 7)
|
560 |
orders = getOrdersByTag(subTagId, 5)
|
| 561 |
for order in orders:
|
561 |
for order in orders:
|
| 562 |
if notReconciled.has_key(order[0]):
|
562 |
if notReconciled.has_key(order[0]):
|
| 563 |
(roww, column, paidAmount, timestamp1, oSubTagId) = notReconciled[order[0]]
|
563 |
(roww, column, paidAmount, timestamp1, oSubTagId) = notReconciled[order[0]]
|
| 564 |
if paidAmount==int(offer.get("transactionValue")) and timestamp1 <= saleTime and timestamp1 + 120 >= saleTime:
|
564 |
if paidAmount==int(offer.get("transactionValue")) and timestamp1 <= saleTime and timestamp1 + 120 >= saleTime:
|
| 565 |
i = column
|
565 |
i = column
|