Subversion Repositories SmartDukaan

Rev

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

Rev 23337 Rev 23477
Line 2325... Line 2325...
2325
                tempMap['count'] = accessoryDeal.get('count')
2325
                tempMap['count'] = accessoryDeal.get('count')
2326
                accData.append(tempMap)
2326
                accData.append(tempMap)
2327
      
2327
      
2328
        mc.set("brandFilter",{3:mobData, 5:tabData, 6:accData}, 600)  
2328
        mc.set("brandFilter",{3:mobData, 5:tabData, 6:accData}, 600)  
2329
    
2329
    
2330
    return sorted(mc.get("brandFilter").get(category_id), key = lambda x: (-x['count'], x['brand']))
2330
    return sorted(mc.get("brandFilter").get(category_id), key = lambda x: (x['brand'], -x['count']))
2331
 
2331
 
2332
def getStaticDeals(offset, limit, category_id, direction):
2332
def getStaticDeals(offset, limit, category_id, direction):
2333
    user_specific_deals = mc.get("staticDeals")
2333
    user_specific_deals = mc.get("staticDeals")
2334
    if user_specific_deals is None:
2334
    if user_specific_deals is None:
2335
        __populateStaticDeals()
2335
        __populateStaticDeals()