Subversion Repositories SmartDukaan

Rev

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

Rev 14496 Rev 14498
Line 131... Line 131...
131
        #saleTime = int(time.mktime(datetime.strptime(order['placedOn'], "%b %d, %Y, %I:%M %p").timetuple()))
131
        #saleTime = int(time.mktime(datetime.strptime(order['placedOn'], "%b %d, %Y, %I:%M %p").timetuple()))
132
        aff = list(db.snapdealOrderAffiliateInfo.find({"subTagId":order["subTagId"]}))
132
        aff = list(db.snapdealOrderAffiliateInfo.find({"subTagId":order["subTagId"]}))
133
        matchedSubTag = False
133
        matchedSubTag = False
134
        if len(aff) > 0 and order["subTagId"] not in matchedList: 
134
        if len(aff) > 0 and order["subTagId"] not in matchedList: 
135
            matchedSubTag = True
135
            matchedSubTag = True
-
 
136
            matchedList.append(order["subTagId"])
136
        once = True        
137
        once = True        
137
        for subOrder in order['subOrders']:
138
        for subOrder in order['subOrders']:
138
            i=-1 
139
            i=-1 
139
            row += 1
140
            row += 1
140
            worksheet.write(row, inc(), orderId)
141
            worksheet.write(row, inc(), orderId)