Subversion Repositories SmartDukaan

Rev

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

Rev 20999 Rev 21061
Line 118... Line 118...
118
            checkBulkPrices(item)
118
            checkBulkPrices(item)
119
            item['bulkPricing'] = sorted(item['bulkPricing'], key=lambda k: k['quantity'],reverse=False)
119
            item['bulkPricing'] = sorted(item['bulkPricing'], key=lambda k: k['quantity'],reverse=False)
120
            
120
            
121
        temp = sorted(v, key = lambda x: (x['availability']),reverse=True)
121
        temp = sorted(v, key = lambda x: (x['availability']),reverse=True)
122
        mc = get_memcache_connection(host=options.mongoHost)
122
        mc = get_memcache_connection(host=options.mongoHost)
123
        if k==1017958:
-
 
124
            temp = [{'minBuyQuantity': 1L, 'color': '', 'quantityStep': 1L, 'sellingPriceType': 'Private deal price', 'maxQuantity': 1L, 'item_id': 24070L, 'sellingPrice': 395, 'availability': 1L, 'bulkPricing': [{'price': 395.0, 'quantity': 1}]}]
-
 
125
        
-
 
126
        mc.set(str("item_availability_"+str(k)), temp, 60*60)
123
        mc.set(str("item_availability_"+str(k)), temp, 60*60)
127
 
124
 
128
def checkBulkPrices(item):
125
def checkBulkPrices(item):
129
    adjusted = False
126
    adjusted = False
130
    """Lets check minBuyQty exist in bulkPricing"""
127
    """Lets check minBuyQty exist in bulkPricing"""