Subversion Repositories SmartDukaan

Rev

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

Rev 19399 Rev 19400
Line 2706... Line 2706...
2706
        subCategories = [int(subCategoryId) for subCategoryId in id_list.split('^')]
2706
        subCategories = [int(subCategoryId) for subCategoryId in id_list.split('^')]
2707
        for subCat in subCategories:
2707
        for subCat in subCategories:
2708
            id_list_mapping[subCat] = SUB_CATEGORY_MAP.get(subCat)
2708
            id_list_mapping[subCat] = SUB_CATEGORY_MAP.get(subCat)
2709
    else:
2709
    else:
2710
        return {}
2710
        return {}
-
 
2711
    print id_list_mapping
2711
    
2712
    
2712
    if mc.get("brandSubCategoryInfo") is None:
2713
    if mc.get("brandSubCategoryInfo") is None:
2713
        collection =  get_mongo_connection().Catalog.Deals
2714
        collection =  get_mongo_connection().Catalog.Deals
2714
        result = collection.aggregate( 
2715
        result = collection.aggregate( 
2715
                [
2716
                [