Subversion Repositories SmartDukaan

Rev

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

Rev 15341 Rev 15342
Line 135... Line 135...
135
    negativeDeals = get_mongo_connection().Catalog.NegativeDeals.find().distinct('sku')
135
    negativeDeals = get_mongo_connection().Catalog.NegativeDeals.find().distinct('sku')
136
    mc.set("negative_deals", negativeDeals, 600)
136
    mc.set("negative_deals", negativeDeals, 600)
137
 
137
 
138
def recomputePoints(item, deal):
138
def recomputePoints(item, deal):
139
    try:
139
    try:
140
        if item.get('available_price') != deal['available_price']:
140
        if item.get('available_price') == deal['available_price']:
141
            print "No need to compute points for %d , as price is still same" %(item['_id'])
141
            print "No need to compute points for %d , as price is still same" %(item['_id'])
142
            raise
142
            raise
143
        nlcPoints = getNlcPoints(item, deal['minNlc'], deal['maxNlc'], deal['available_price'])
143
        nlcPoints = getNlcPoints(item, deal['minNlc'], deal['maxNlc'], deal['available_price'])
144
    except:
144
    except:
145
        traceback.print_exc()
145
        traceback.print_exc()