Subversion Repositories SmartDukaan

Rev

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

Rev 16579 Rev 16580
Line 641... Line 641...
641
    
641
    
642
    if not skuData:
642
    if not skuData:
643
        return {}
643
        return {}
644
    else:
644
    else:
645
        bundleId = skuData[0]["skuBundleId"]
645
        bundleId = skuData[0]["skuBundleId"]
646
        itemIds = list(get_mongo_connection().Catalog.MasterData.find({'skuBundleId':bundleId, 'in_stock':1, 'source_id':{"$in":[1,2,3,5,6]}}), 
646
        itemIds = list(get_mongo_connection().Catalog.MasterData.find({'skuBundleId':bundleId, 'in_stock':1, 'source_id':{"$in":[1,2,3,5,6]}}, 
647
                       {"source_id":1, "available_price":1, "marketPlaceUrl":1, "gross_price":1, "codAvailable":1, "source_product_name":1, "offer":1, "coupon":1})
647
                       {"source_id":1, "available_price":1, "marketPlaceUrl":1, "gross_price":1, "codAvailable":1, "source_product_name":1, "offer":1, "coupon":1}))
648
        return {'products':itemIds}
648
        return {'products':itemIds}
649
        
649
        
650
    
650
    
651
 
651
 
652
def getDealRank(identifier, source_id, userId):
652
def getDealRank(identifier, source_id, userId):