Subversion Repositories SmartDukaan

Rev

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

Rev 18739 Rev 18762
Line 203... Line 203...
203
                buyBoxStock = vendorInfo['primaryVendor']['buyableInventory']
203
                buyBoxStock = vendorInfo['primaryVendor']['buyableInventory']
204
                if buyBoxStock >0:
204
                if buyBoxStock >0:
205
                    buyBoxPrice = vendorInfo['primaryVendor']['sellingPrice']
205
                    buyBoxPrice = vendorInfo['primaryVendor']['sellingPrice']
206
            except:
206
            except:
207
                pass
207
                pass
208
            print "buy box stock ",buyBoxStock
-
 
209
            print "bux box price ",buyBoxPrice
-
 
210
            sortedVendorsData = sorted(vendorInfo['vendors'], key=itemgetter('sellingPrice'))
208
            sortedVendorsData = sorted(vendorInfo['vendors'], key=itemgetter('sellingPrice'))
211
            for sortedVendorData in sortedVendorsData:
209
            for sortedVendorData in sortedVendorsData:
212
                lowestOfferPrice = float(sortedVendorData['sellingPrice'])
210
                lowestOfferPrice = float(sortedVendorData['sellingPrice'])
213
                try:
211
                try:
214
                    stock = sortedVendorData['buyableInventory']
212
                    stock = sortedVendorData['buyableInventory']