Example #1
0
    def generate_participants(self, data):
        spring_teams = data['spring_teams']
        spring_teams_table = tournament.create_teams_table(spring_teams)
        details = tournament.wrap_details(spring_teams_table,
                                          summary="Spring Participants")
        div = et.Element("div")
        div.append(details)

        summer_teams = data['summer_teams']
        summer_teams_table = tournament.create_teams_table(summer_teams)
        details = tournament.wrap_details(summer_teams_table,
                                          summary="Summer Participants")
        div.append(details)
        return div
Example #2
0
 def generate_participants(self, data):
     teams_table = tournament.create_teams_table(
         data['teams'],
         labels={
             0: "Main Event Seeds",
             4: "Play-In Round 2 Seeds",
             6: "Play-In Round 1 Seeds (Pool 1)",
             10: "Play-In Round 1 Seeds (Pool 2)",
         })
     details = tournament.wrap_details(teams_table, summary="Participants")
     teams = et.Element("div")
     teams.append(details)
     return teams
    def generate_participants(self, data):
        teams = data['teams']
        teams_table = tournament.create_teams_table(teams, labels = {
            0: "Pool 1",
            4: "Pool 2",
            12: "Pool 3",
        })
        details = tournament.wrap_details(teams_table,
                                          summary="Participants (by pool)")
        div = et.Element("div")
        div.append(details)

        region_teams = tournament.compute_region_teams(teams)
        region_teams_table = tournament.create_region_teams_table(region_teams)
        details = tournament.wrap_details(region_teams_table,
                                          summary="Participants (by region)")
        div.append(details)
        return div