def get_urls_by_label(selected_label):
    label_info = g.items_database[selected_label]
    return [{'preview': get_resized_image(current_url, g.items_preview_size)} for current_url in label_info['url']][:g.items_preview_count]
def get_urls_by_label(selected_label):
    label_info = g.items_database[selected_label]
    return [{'preview': get_resized_image(current_url, g.items_preview_size)} for current_url in label_info['url']][:g.items_preview_count]