def get_scans_by_type(scans, scan_type):
    """
    Get scans based on their type

    :param scans: dict
    :param scan_type: str
    :return:
    """
    result = list()
    for scan in scans:
        if scan['scan_type'] == scan_type:
            result.append(scan)
    return result