Subversion Repositories SmartDukaan

Rev

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

Rev 17756 Rev 17764
Line 324... Line 324...
324
        result['amount'] = 0.0
324
        result['amount'] = 0.0
325
    return result
325
    return result
326
 
326
 
327
def __constructDummyDealObject(skuBundleId):
327
def __constructDummyDealObject(skuBundleId):
328
    temp =[]
328
    temp =[]
329
    deals = get_mongo_connection().Catalog.Deals.find({"skuBundleId":skuBundleId,"$or":[{"showDeal":1}, {"prepaidDeal":1}]},{'_id':1,'category_id':1,'brand':1,'totalPoints':1,'bestSellerPoints':1,'nlcPoints':1,'rank':1,'available_price':1,'dealType':1,'source_id':1,'brand_id':1,'skuBundleId':1,'dp':1, 'showDp':1, 'gross_price':1})
329
    deals = get_mongo_connection().Catalog.Deals.find({"skuBundleId":skuBundleId,"$or":[{"showDeal":1}, {"prepaidDeal":1}]},{'_id':1,'category_id':1,'brand':1,'totalPoints':1,'bestSellerPoints':1,'nlcPoints':1,'rank':1,'available_price':1,'dealType':1,'source_id':1,'brand_id':1,'skuBundleId':1,'dp':1, 'showDp':1, 'gross_price':1,'subCategoryId':1})
330
    for d in deals:
330
    for d in deals:
331
        d['persPoints'] = 0
331
        d['persPoints'] = 0
332
        temp.append(d)
332
        temp.append(d)
333
    return temp
333
    return temp
334
    
334