

def get_platform_filter(platforms):
    if platforms:
        platform_filter = [PLATFORM_IDS[platform] for platform in platforms]
    else:
        platform_filter = PLATFORM_IDS.values()
    return platform_filter

dataset/ETHPy150Open architv/chcli/challenges/cli.py get_platform_filter/original