Subversion Repositories SmartDukaan

Rev

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

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