Subversion Repositories SmartDukaan

Rev

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

Rev 12399 Rev 12400
Line 424... Line 424...
424
        ourSp, ourRank, lowestSellerSp, secondLowestSellerSp, thirdLowestSellerSp, ourTp, lowestPossibleSp, lowestPossibleTp = (0,)*8
424
        ourSp, ourRank, lowestSellerSp, secondLowestSellerSp, thirdLowestSellerSp, ourTp, lowestPossibleSp, lowestPossibleTp = (0,)*8
425
        sku = val.sku
425
        sku = val.sku
426
        scrapedSkuLocation = None
426
        scrapedSkuLocation = None
427
        multipleListings = False
427
        multipleListings = False
428
        for info in scrapInfo:
428
        for info in scrapInfo:
429
            if (info.sellerName).strip()=='Saholic':
429
            if (info['sellerName']).strip()=='Saholic':
430
                if ourRank>0:
430
                if ourRank>0:
431
                    multipleListings = True
431
                    multipleListings = True
432
                ourSp = info.sellerPrice
432
                ourSp = info['sellerPrice']
433
                ourRank = iterator+1
433
                ourRank = iterator+1
434
                if val.state_id==1:
434
                if val.state_id==1:
435
                    #It means sku starts with FBA
435
                    #It means sku starts with FBA
436
                    fbaPrice = (amazonAsinPrice.get(val.sku)).price
436
                    fbaPrice = (amazonAsinPrice.get(val.sku)).price
437
                    try:
437
                    try:
Line 451... Line 451...
451
                    scrapedSkuLocation = None
451
                    scrapedSkuLocation = None
452
                if scrapedSkuLocation is None:
452
                if scrapedSkuLocation is None:
453
                    print "fishy...confused for ", val.sku
453
                    print "fishy...confused for ", val.sku
454
            
454
            
455
            if iterator == 0:
455
            if iterator == 0:
456
                lowestSellerName = info.sellerName
456
                lowestSellerName = info['sellerName']
457
                lowestSellerSp = info.sellerPrice
457
                lowestSellerSp = info['sellerPrice']
458
            
458
            
459
            if iterator == 1:
459
            if iterator == 1:
460
                secondLowestSellerName = info.sellerName
460
                secondLowestSellerName = info['sellerName']
461
                secondLowestSellerSp = info.sellerPrice
461
                secondLowestSellerSp = info['sellerPrice']
462
            
462
            
463
            if iterator == 2:
463
            if iterator == 2:
464
                thirdLowestSellerName = info.sellerName
464
                thirdLowestSellerName = info['sellerName']
465
                thirdLowestSellerSp = info.sellerPrice
465
                thirdLowestSellerSp = info['sellerPrice']
466
            
466
            
467
            iterator += 1
467
            iterator += 1
468
        
468
        
469
        #if cheapestSkuLocation!=val.state_id
469
        #if cheapestSkuLocation!=val.state_id
470
        
470