def map_event_code_to_short_comp(event_name, season=None):
    my_config = ScoutingAppMainWebServer.global_config

    if season == None:
        if event_name.startswith("201"):
            season = event_name[0:4]
        else:
            season = my_config["this_season"]

    if event_name.startswith("201"):
        comp = event_name[4:]
    else:
        comp = event_name
    event_info = CompAlias.get_event_by_code(comp)
    if event_info != None:
        comp = event_info.event_alias

    return comp