def filterArchitecture(results, architecture):
    """
    Restrict the list of results based on given architecture
    """
    filtered_results = {}
    for name, res in results.items():
        filtered_values = []
        for value in res:
            if architecture is "x86":
                # drop aarch64 results
                if ("armband" not in value['build_tag']):
                    filtered_values.append(value)
            elif architecture is "aarch64":
                # drop x86 results
                if ("armband" in value['build_tag']):
                    filtered_values.append(value)
        if (len(filtered_values) > 0):
            filtered_results[name] = filtered_values
    return filtered_results