From 1a4e050371e00c58a13b875660909b4821b2b6e6 Mon Sep 17 00:00:00 2001
From: Marius Heidenreich <marius.heidenreich@tu-dortmund.de>
Date: Tue, 8 Apr 2025 20:33:47 +0200
Subject: [PATCH] added meta tags

---
 competition_page.py   | 8 ++++----
 main.py               | 2 +-
 public/index.html     | 2 ++
 team_page.py          | 1 +
 world_ranking_list.py | 1 +
 5 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/competition_page.py b/competition_page.py
index 28af72c..28de93f 100644
--- a/competition_page.py
+++ b/competition_page.py
@@ -8,6 +8,7 @@ def get_competition_page_html(self, competition_id):
     <html lang="en">
     <head>
         <meta charset="UTF-8">
+        <meta name="description" content="Results of {full_competition_name}">
         <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <title>{full_competition_name} - Results</title>
         {self.header_snippet}
@@ -206,19 +207,18 @@ def get_competition_page_html(self, competition_id):
     <body>
         <h1>{full_competition_name} - Results</h1>
         <p><a href="../index.html">← Back to World Ranking</a></p>
-        </div>
         
         <div class="sponsoring-container">
             <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>
diff --git a/main.py b/main.py
index 78932b1..684ae6a 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()/2)
+        num_processes = int(mp.cpu_count())
         print(f"staring computation on {num_processes} cores")
         pool = mp.Pool(processes=num_processes)
 
diff --git a/public/index.html b/public/index.html
index 0055b84..13fc1da 100644
--- a/public/index.html
+++ b/public/index.html
@@ -2,6 +2,8 @@
 <html lang="en">
 <head>
     <meta charset="UTF-8">
+    <meta name="description" content="Unofficial Formula Student World Ranking">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>Formula Student World Elo</title>
     <script defer data-domain="fselo.get-racing.de" src="https://analytics.get-racing.de/js/script.js"></script>
     <style>
diff --git a/team_page.py b/team_page.py
index c5cf554..34b5157 100644
--- a/team_page.py
+++ b/team_page.py
@@ -6,6 +6,7 @@ def get_team_page_html(self, team_name, team_data, team_competitions):
     <html lang="en">
     <head>
         <meta charset="UTF-8">
+        <meta name="description" content="Overview of the elo history of {team_name}">
         <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <title>{team_name} - Elo Profile</title>
         {self.header_snippet}
diff --git a/world_ranking_list.py b/world_ranking_list.py
index cdc069d..c55c4e7 100644
--- a/world_ranking_list.py
+++ b/world_ranking_list.py
@@ -6,6 +6,7 @@ def get_world_ranking_html(self, sorted_teams):
     <html lang="en">
     <head>
         <meta charset="UTF-8">
+        <meta name="description" content="Unofficial Formula Student {self.competition_type} World Ranking">
         <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <title>Formula Student {self.competition_type} Elo Rankings</title>
         {self.header_snippet}
-- 
GitLab