Subversion Repositories SmartDukaan

Rev

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

Rev 5147 Rev 5167
Line 1078... Line 1078...
1078
    '''
1078
    '''
1079
    Returns the query to be used to retrieve Latest Arrivals.
1079
    Returns the query to be used to retrieve Latest Arrivals.
1080
    Ignores the category if it's passed as -1 and the brand if it's passed as None.
1080
    Ignores the category if it's passed as -1 and the brand if it's passed as None.
1081
    '''
1081
    '''
1082
    query = get_latest_arrivals_counting_query(obj, categories, brand)
1082
    query = get_latest_arrivals_counting_query(obj, categories, brand)
1083
    query = query.group_by(Item.catalog_item_id).order_by(desc(Item.startDate))
1083
    query = query.group_by(Item.catalog_item_id).order_by(desc(Item.startDate)).order_by(Item.catalog_item_id)
1084
    return query
1084
    return query
1085
 
1085
 
1086
def get_thrift_item_list(items):
1086
def get_thrift_item_list(items):
1087
    return [to_t_item(item) for item in items if item != None]
1087
    return [to_t_item(item) for item in items if item != None]
1088
 
1088