Subversion Repositories SmartDukaan

Rev

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

Rev 16026 Rev 16028
Line 138... Line 138...
138
                    pass
138
                    pass
139
                product = list(get_mongo_connection().Catalog.MasterData.find({'source_id':5,'marketPlaceUrl':{'$regex': uri}}))
139
                product = list(get_mongo_connection().Catalog.MasterData.find({'source_id':5,'marketPlaceUrl':{'$regex': uri}}))
140
                toBundle = __ProductInfo(scin, rank, link, productInfo['price'], productInfo['inStock'],productInfo['isCod'], productName, "" ,productInfo['coupon'])
140
                toBundle = __ProductInfo(scin, rank, link, productInfo['price'], productInfo['inStock'],productInfo['isCod'], productName, "" ,productInfo['coupon'])
141
                if len(product) > 0:
141
                if len(product) > 0:
142
                    bundleNewProduct(product[0], toBundle)
142
                    bundleNewProduct(product[0], toBundle)
-
 
143
                    try:
-
 
144
                        recomputeDeal(product[0])
-
 
145
                    except:
-
 
146
                        print "Unable to compute deal for %s"%(product[0]['skuBundleId'])
143
                else:
147
                else:
144
                    exceptionList.append(toBundle)
148
                    exceptionList.append(toBundle)
145
        page = page+1
149
        page = page+1
146
 
150
 
147
def populateNegativeDeals():
151
def populateNegativeDeals():