diff --git a/main.py b/main.py index fb739fda7fe360f17b45dc3bef2a1c1ae7f5919b..78932b1243c72b4181f770cd5d29ca7b28089d3d 100644 --- a/main.py +++ b/main.py @@ -242,7 +242,7 @@ class EloSystem: """Generate static HTML website with Elo ratings and visualizations""" # If num_processes not specified, use number of CPU cores - num_processes = int(mp.cpu_count()) + num_processes = int(mp.cpu_count()/2) print(f"staring computation on {num_processes} cores") pool = mp.Pool(processes=num_processes) @@ -255,6 +255,8 @@ class EloSystem: pool.map(self.create_team_page, self.teams) + pool.close() + self.create_visualizations() print(f"Website generated in {self.output_directory}") diff --git a/public/index.html b/public/index.html index 98112af31ad78149757d47f5f41ba51cccb811ab..0055b84af699334cdb32bbacbbf469d503223418 100644 --- a/public/index.html +++ b/public/index.html @@ -152,7 +152,7 @@ <a href="https://www.get-racing.de" target="_blank"> <div class="by"> <div><h3>by</h3></div> - <div><img src="GET_racing_schwarz.svg" width="200em"></div> + <div><img src="GET_racing_schwarz.svg" width="200em" alt="Logo of the GET racing Formula Student Team"></div> </div> </a> </div> diff --git a/world_ranking_list.py b/world_ranking_list.py index 4ac1e0f0716f44a3771d0e53a7eda70d9ddf96d6..cdc069d7d1548de8c066656c521b7bc88a82b0b8 100644 --- a/world_ranking_list.py +++ b/world_ranking_list.py @@ -259,13 +259,13 @@ def get_world_ranking_html(self, sorted_teams): <div style="margin-bottom: 12px; margin-top: 16px; text-align: center">sponsored by:</div> <div class="sponsoring-flex"> <div class="sponsor"> - <a href="https://murtfeldt.de" target="_blank"><img src="../murtfeldt.png"></a> + <a href="https://murtfeldt.de" target="_blank"><img src="../murtfeldt.png" alt="Logo of Murtfeldt Kunststoffe"></a> </div> <div class="sponsor"> - <a href="https://www.kordel.de" target="_blank"><img src="../kordel.png"></a> + <a href="https://www.kordel.de" target="_blank"><img src="../kordel.png" alt="Logo of Kordel"></a> </div> <div class="sponsor"> - <a href="https://www.vulcanus-stahl.de/" target="_blank"><img src="../vulcanus.png"></a> + <a href="https://www.vulcanus-stahl.de/" target="_blank"><img src="../vulcanus.png" alt="Logo of Vulcanus Stahl"></a> </div> </div> </div> @@ -284,16 +284,16 @@ def get_world_ranking_html(self, sorted_teams): # Add rows for each team for rank, (team_name, team_data) in enumerate(sorted_teams, 1): html_content += f""" - <tr> - <td>{rank}</td> - <td><a href="team/{clean_filename(team_name)}.html">{team_name}</a></td> - <td>{int(team_data['elo'])}</td> - <td>{team_data['competitions']}</td> - </tr>""" + <tr> + <td>{rank}</td> + <td><a href="team/{clean_filename(team_name)}.html">{team_name}</a></td> + <td>{int(team_data['elo'])}</td> + <td>{team_data['competitions']}</td> + </tr>""" html_content += f""" </table> - <div> + </div> <div class="chart-container"> <img src="images/top_teams_elo.{self.IMAGE_FORMAT}" alt="Top Teams Elo Chart">