From 2396e14782026ea7332ee89bf3113b4a4ebe4ba1 Mon Sep 17 00:00:00 2001
From: Marius Heidenreich <marius.heidenreich@tu-dortmund.de>
Date: Tue, 8 Apr 2025 20:07:31 +0200
Subject: [PATCH] added img alt and fixed divs

---
 main.py               |  4 +++-
 public/index.html     |  2 +-
 world_ranking_list.py | 20 ++++++++++----------
 3 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/main.py b/main.py
index fb739fd..78932b1 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 98112af..0055b84 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 4ac1e0f..cdc069d 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">
-- 
GitLab