Subversion Repositories SmartDukaan

Rev

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

Rev 14487 Rev 14488
Line 132... Line 132...
132
            continue
132
            continue
133
        print order["subTagId"]
133
        print order["subTagId"]
134
        saleTime = int(time.mktime(datetime.strptime(order['placedOn'], "%b %d, %Y, %I:%M %p").timetuple()))
134
        saleTime = int(time.mktime(datetime.strptime(order['placedOn'], "%b %d, %Y, %I:%M %p").timetuple()))
135
        aff = list(db.snapdealOrderAffiliateInfo.find({"subTagId":order["subTagId"]}))
135
        aff = list(db.snapdealOrderAffiliateInfo.find({"subTagId":order["subTagId"]}))
136
        gotCashBack = False
136
        gotCashBack = False
137
        #if len(aff) and aff[0]['saleTime']- saleTime < 90 and aff[0]['saleTime'] - saleTime >= 0:
-
 
138
        if order["subTagId"] not in matchedList: 
137
        if len(aff) > 0 and order["subTagId"] not in matchedList: 
139
            gotCashBack = True
138
            gotCashBack = True
140
                
139
                
141
        for subOrder in order['subOrders']:
140
        for subOrder in order['subOrders']:
142
            i=-1 
141
            i=-1 
143
            row += 1
142
            row += 1