@staticmethod
def format_schedule(schedule: object) -> str:
    'Format the schedule object in a string of the format <task> every <frequency>? <period> (at <time>)?'
    task_start = f"{schedule['job_type'].lower()}"
    frequency_part = 'every'
    if (schedule['frequency'] == 1):
        period = schedule['period'].lower()
        period = (period if (period[(- 1)] != 's') else period[:(- 1)])
        frequency_part += f' {period}'
    else:
        frequency_part += f" {schedule['frequency']} {schedule['period'].lower()}"
    time_part = (f" at {schedule['time']}" if ('time' in schedule) else '')
    return f'{task_start} {frequency_part}{time_part}'
Format the schedule object in a string of the format <task> every <frequency>? <period> (at <time>)?
@staticmethod
def format_schedule(schedule: object) -> str:
    
    task_start = f"{schedule['job_type'].lower()}"
    frequency_part = 'every'
    if (schedule['frequency'] == 1):
        period = schedule['period'].lower()
        period = (period if (period[(- 1)] != 's') else period[:(- 1)])
        frequency_part += f' {period}'
    else:
        frequency_part += f" {schedule['frequency']} {schedule['period'].lower()}"
    time_part = (f" at {schedule['time']}" if ('time' in schedule) else )
    return f'{task_start} {frequency_part}{time_part}'