def generate_format_dict(self, machine_list: list[dict], previous_format_dict: dict):
    previous_start = previous_format_dict.pop('start')
    format_dict = {}
    format_dict['machine active'] = False
    for machine in machine_list:
        if (machine['state'] == 'FirstOnline'):
            format_dict['machine active'] = True
            format_dict['os name'] = machine['os']
            format_dict['os version'] = machine['os version']
            format_dict['os version name'] = self.assets['operating systems'][machine['os']]['versions'][machine['os version']]['name']
            format_dict['os version image'] = self.assets['operating systems'][machine['os']]['versions'][machine['os version']]['image']
            format_dict['architecture'] = machine['architecture']
            format_dict['architecture image'] = machine['architecture']
            break
    format_dict['icon'] = 'icon'
    if (format_dict == previous_format_dict):
        format_dict['start'] = previous_start
    else:
        format_dict['start'] = time.time()
    return format_dict
def generate_format_dict(self, machine_list: list[dict], previous_format_dict: dict):
    previous_start = previous_format_dict.pop('start')
    format_dict = {}
    format_dict['machine active'] = False
    for machine in machine_list:
        if (machine['state'] == 'FirstOnline'):
            format_dict['machine active'] = True
            format_dict['os name'] = machine['os']
            format_dict['os version'] = machine['os version']
            format_dict['os version name'] = self.assets['operating systems'][machine['os']]['versions'][machine['os version']]['name']
            format_dict['os version image'] = self.assets['operating systems'][machine['os']]['versions'][machine['os version']]['image']
            format_dict['architecture'] = machine['architecture']
            format_dict['architecture image'] = machine['architecture']
            break
    format_dict['icon'] = 'icon'
    if (format_dict == previous_format_dict):
        format_dict['start'] = previous_start
    else:
        format_dict['start'] = time.time()
    return format_dict