Subversion Repositories SmartDukaan

Rev

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

Rev 15140 Rev 15143
Line 1197... Line 1197...
1197
        mc.set("brandFilter",{0:brandMap, 3:mobData, 5:tabData}, 600)  
1197
        mc.set("brandFilter",{0:brandMap, 3:mobData, 5:tabData}, 600)  
1198
    
1198
    
1199
    return sorted(mc.get("brandFilter").get(category_id), key = lambda x: (-x['count'], x['brand']))
1199
    return sorted(mc.get("brandFilter").get(category_id), key = lambda x: (-x['count'], x['brand']))
1200
        
1200
        
1201
def main():
1201
def main():
1202
    print __getBrandIdForBrand('Apple',3)
1202
    print __getBrandIdForBrand('Micromax',5)
1203
    
1203
    
1204
    
1204
    
1205
if __name__=='__main__':
1205
if __name__=='__main__':
1206
    main()
1206
    main()