Subversion Repositories SmartDukaan

Rev

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

Rev 12442 Rev 12443
Line 411... Line 411...
411
    aggResponse = amScraper.get_competitive_pricing_for_sku('A21TJRUUN4KGV', skus)
411
    aggResponse = amScraper.get_competitive_pricing_for_sku('A21TJRUUN4KGV', skus)
412
    ourPricingForSku = amScraper.get_my_pricing_for_sku('A21TJRUUN4KGV', skus)
412
    ourPricingForSku = amScraper.get_my_pricing_for_sku('A21TJRUUN4KGV', skus)
413
 
413
 
414
    for val in itemInfo:
414
    for val in itemInfo:
415
        scrapInfo = aggResponse.get(val.sku)
415
        scrapInfo = aggResponse.get(val.sku)
416
        if len(scrapInfo)==0 or val.nlc==0 or len(ourPricingForSku.get(val.sku).keys())==0:
416
        if scrapInfo is None or len(scrapInfo)==0 or val.nlc==0 or len(ourPricingForSku.get(val.sku).keys())==0:
417
            temp = []
417
            temp = []
418
            temp.append(val)
418
            temp.append(val)
419
            if val.nlc==0 or val.nlc is None:
419
            if val.nlc==0 or val.nlc is None:
420
                temp.append("WANLC is 0")
420
                temp.append("WANLC is 0")
421
            elif len(ourPricingForSku.get(val.sku) is None or ourPricingForSku.get(val.sku).keys())==0:
421
            elif ourPricingForSku.get(val.sku) is None or ourPricingForSku.get(val.sku).keys()==0:
422
                temp.append("Unable to fetch our price")
422
                temp.append("Unable to fetch our price")
423
            else:
423
            else:
424
                temp.append("Unable to fetch competitive pricing")
424
                temp.append("Unable to fetch competitive pricing")
425
            exceptionList.append(temp)
425
            exceptionList.append(temp)
426
            continue
426
            continue