Subversion Repositories SmartDukaan

Rev

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

Rev 22256 Rev 22258
Line 924... Line 924...
924
    else:
924
    else:
925
        print "Getting user deals from cache"
925
        print "Getting user deals from cache"
926
    category_specific_deals = user_specific_deals.get(category_id)
926
    category_specific_deals = user_specific_deals.get(category_id)
927
    #filter categores on basis of source and tags
927
    #filter categores on basis of source and tags
928
    if source=="online":
928
    if source=="online":
929
        category_specific_deals = filter(lambda x: x['souce_id'] in ONLINE_DEAL_SOURCE_MAP, category_specific_deals)
929
        category_specific_deals = filter(lambda x: x['source_id'] in ONLINE_DEAL_SOURCE_MAP, category_specific_deals)
930
    elif source=="deals":
930
    elif source=="deals":
931
        category_specific_deals = filter(lambda x: x['souce_id'] == SOURCE_MAP.get("SAHOLIC"), category_specific_deals)
931
        category_specific_deals = filter(lambda x: x['source_id'] == SOURCE_MAP.get("SAHOLIC"), category_specific_deals)
932
        
932
        
933
         
933
         
934
    
934
    
935
    insert_featured_deals = False
935
    insert_featured_deals = False
936
    if sort is None or direction is None:
936
    if sort is None or direction is None: