Subversion Repositories SmartDukaan

Rev

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

Rev 14625 Rev 14653
Line 329... Line 329...
329
                            elif "Tracking No" in line:
329
                            elif "Tracking No" in line:
330
                                trackingNumber = line.split(":")[1].strip()
330
                                trackingNumber = line.split(":")[1].strip()
331
                                updateMap["subOrders.$.trackingNumber"] = trackingNumber
331
                                updateMap["subOrders.$.trackingNumber"] = trackingNumber
332
    
332
    
333
                        if breakFlag:
333
                        if breakFlag:
334
                            break
334
                            continue
335
                                
335
                                
336
                        bulk.find(findMap).update({'$set' : updateMap})
336
                        bulk.find(findMap).update({'$set' : updateMap})
337
                    bulk.find({'orderId': order['orderId']}).update({'$set':{'closed': closed}})
337
                    bulk.find({'orderId': order['orderId']}).update({'$set':{'closed': closed}})
338
                result = bulk.execute()
338
                result = bulk.execute()
339
                tprint(result)
339
                tprint(result)
Line 408... Line 408...
408
    #print todict([1,2,"3"])
408
    #print todict([1,2,"3"])
409
    store = getStore(3)
409
    store = getStore(3)
410
    #print store.parseOrderRawHtml(32, "32323", 2, "323243", "https://m.snapdeal.com/orderSummary?code=6d7428243672f72436736707a46ecbd2&order=5328225555")
410
    #print store.parseOrderRawHtml(32, "32323", 2, "323243", "https://m.snapdeal.com/orderSummary?code=6d7428243672f72436736707a46ecbd2&order=5328225555")
411
    #store.scrapeStoreOrders()
411
    #store.scrapeStoreOrders()
412
    #store._isSubOrderActive(8, "5970688907")
412
    #store._isSubOrderActive(8, "5970688907")
413
    store.scrapeAffiliate()
413
    #store.scrapeAffiliate()
414
    #store.scrapeStoreOrders()
414
    store.scrapeStoreOrders()
415
 
415
 
416
 
416
 
417
            
417
            
418
def todict(obj, classkey=None):
418
def todict(obj, classkey=None):
419
    if isinstance(obj, dict):
419
    if isinstance(obj, dict):