diff --git a/competition_page.py b/competition_page.py index 28af72c6393a124abdd5ca273383ee066a19d3a9..28de93fe823dd99c8bd8cc95faafc77b569d8a49 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 78932b1243c72b4181f770cd5d29ca7b28089d3d..684ae6aae0fcb89ad13ef690a86ee54f9b7cba96 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 0055b84af699334cdb32bbacbbf469d503223418..13fc1da5d01df43741f2917fa2bf8dba640c53cd 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 c5cf55440fa092449b300b57723c330037cf8f4c..34b51571b679e43806e31834be789d4d87d42a5f 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 cdc069d7d1548de8c066656c521b7bc88a82b0b8..c55c4e7f17f965dc2014614185c936ecd4900d0c 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}