def upcoming_contests(platforms, time):
  contests_data = get_contests_data()
  platform_filter = get_platform_filter(platforms)

  upcoming_challenges = [contest for contest in contests_data["pending"] if contest["host_name"] in platform_filter 
    and time_difference(contest["start"]).days <= time]

  return upcoming_challenges
Adds a new tab into TabSheet.
dataset/ETHPy150Open architv/chcli/challenges/cli.py/upcoming_contests--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tab_sheet.py/TabSheet.addTab