Subversion Repositories SmartDukaan

Rev

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

Rev 15956 Rev 15975
Line 249... Line 249...
249
                for vData in sortedVendorsData:
249
                for vData in sortedVendorsData:
250
                    lowestSp = vData['sellingPrice']
250
                    lowestSp = vData['sellingPrice']
251
                    break
251
                    break
252
                if lowestSp > 0:
252
                if lowestSp > 0:
253
                    inStock = 1
253
                    inStock = 1
-
 
254
                try:
254
                buyBoxPrice = buyBoxInfo[0].get('sellingPrice')
255
                    buyBoxPrice = buyBoxInfo[0].get('sellingPrice')
-
 
256
                except:
-
 
257
                    buyBoxPrice = None
255
            print lowestSp
258
            print lowestSp
256
            print inStock
259
            print inStock
257
            if buyBoxPrice is not None and buyBoxPrice == lowestSp:
260
            if buyBoxPrice is not None and buyBoxPrice == lowestSp:
258
                isBuyBox = 1
261
                isBuyBox = 1
259
            if lowestSp > 0:
262
            if lowestSp > 0:
Line 480... Line 483...
480
        info = returnLatestPrice(item, item['source_id'],False)
483
        info = returnLatestPrice(item, item['source_id'],False)
481
        print info
484
        print info
482
 
485
 
483
def main():
486
def main():
484
    print datetime.now()
487
    print datetime.now()
485
    print "retuned %s"%(str(getLatestPriceById(23165)))
488
    print "retuned %s"%(str(getLatestPriceById(12391)))
486
    print datetime.now()
489
    print datetime.now()
487
if __name__=='__main__':
490
if __name__=='__main__':
488
    main()
491
    main()
489
    
492