Subversion Repositories SmartDukaan

Rev

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

Rev 19389 Rev 19390
Line 2764... Line 2764...
2764
            for v in tempList:
2764
            for v in tempList:
2765
                if returnMap.has_key(v['subCategoryId']):
2765
                if returnMap.has_key(v['subCategoryId']):
2766
                    existing = returnMap.get(v['subCategoryId'])
2766
                    existing = returnMap.get(v['subCategoryId'])
2767
                    existing['count'] = existing['count'] + v['count'] 
2767
                    existing['count'] = existing['count'] + v['count'] 
2768
                else:
2768
                else:
2769
                    returnMap[v['brand_id']] = {'subCategoryId':v['subCategoryId'],'subCategory':v['subCategory'],'count':v['count']}
2769
                    returnMap[v['subCategoryId']] = {'subCategoryId':v['subCategoryId'],'subCategory':v['subCategory'],'count':v['count']}
2770
    
2770
    
2771
    return returnMap.values()
2771
    return returnMap.values()
2772
 
2772
 
2773
            
2773
            
2774
def main():
2774
def main():