def get_comp_and_eventcode_list(season=None): my_config = ScoutingAppMainWebServer.global_config complist = list() if season == None: season = my_config["this_season"] this_comp = my_config["this_competition"] complist.append((this_comp, CompAlias.get_eventcode_by_alias(this_comp))) other_competitions = CompAlias.get_comp_and_eventcode_list() for comp in other_competitions: if comp and comp[0].upper() != my_config["this_competition"].upper(): complist.append(comp) return complist