def get_search_result(ranks: list, ordered_list: list):
    """
    Method drops all sites that should not be displayed (those which have RANK qual to 0)
    :param ranks: ranks for given search for all sites by order present in ordered_list
    :param ordered_list: PopulateStructures instance attribute html_files (list of all sites)
    :return: filtered results list
    """
    ret = []
    for i in range(len(ranks)):
        if ranks[i][0] != 0:
            ret.append([ordered_list[i], ranks[i]])
    return ret