Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
formula student elo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GET racing FOSS
formula student elo
Commits
1a4e0503
Commit
1a4e0503
authored
3 months ago
by
Marius Heidenreich
Browse files
Options
Downloads
Patches
Plain Diff
added meta tags
parent
2396e147
No related branches found
No related tags found
No related merge requests found
Pipeline
#280426
passed
3 months ago
Stage: test
Stage: deploy
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
competition_page.py
+4
-4
4 additions, 4 deletions
competition_page.py
main.py
+1
-1
1 addition, 1 deletion
main.py
public/index.html
+2
-0
2 additions, 0 deletions
public/index.html
team_page.py
+1
-0
1 addition, 0 deletions
team_page.py
world_ranking_list.py
+1
-0
1 addition, 0 deletions
world_ranking_list.py
with
9 additions
and
5 deletions
competition_page.py
+
4
−
4
View file @
1a4e0503
...
@@ -8,6 +8,7 @@ def get_competition_page_html(self, competition_id):
...
@@ -8,6 +8,7 @@ def get_competition_page_html(self, competition_id):
<html lang=
"
en
"
>
<html lang=
"
en
"
>
<head>
<head>
<meta charset=
"
UTF-8
"
>
<meta charset=
"
UTF-8
"
>
<meta name=
"
description
"
content=
"
Results of
{
full_competition_name
}
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1.0
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1.0
"
>
<title>
{
full_competition_name
}
- Results</title>
<title>
{
full_competition_name
}
- Results</title>
{
self
.
header_snippet
}
{
self
.
header_snippet
}
...
@@ -206,19 +207,18 @@ def get_competition_page_html(self, competition_id):
...
@@ -206,19 +207,18 @@ def get_competition_page_html(self, competition_id):
<body>
<body>
<h1>
{
full_competition_name
}
- Results</h1>
<h1>
{
full_competition_name
}
- Results</h1>
<p><a href=
"
../index.html
"
>← Back to World Ranking</a></p>
<p><a href=
"
../index.html
"
>← Back to World Ranking</a></p>
</div>
<div class=
"
sponsoring-container
"
>
<div class=
"
sponsoring-container
"
>
<div style=
"
margin-bottom: 12px; margin-top: 16px; text-align: center
"
>sponsored by:</div>
<div style=
"
margin-bottom: 12px; margin-top: 16px; text-align: center
"
>sponsored by:</div>
<div class=
"
sponsoring-flex
"
>
<div class=
"
sponsoring-flex
"
>
<div class=
"
sponsor
"
>
<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>
<div class=
"
sponsor
"
>
<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>
<div class=
"
sponsor
"
>
<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>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
main.py
+
1
−
1
View file @
1a4e0503
...
@@ -242,7 +242,7 @@ class EloSystem:
...
@@ -242,7 +242,7 @@ class EloSystem:
"""
Generate static HTML website with Elo ratings and visualizations
"""
"""
Generate static HTML website with Elo ratings and visualizations
"""
# If num_processes not specified, use number of CPU cores
# 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
"
)
print
(
f
"
staring computation on
{
num_processes
}
cores
"
)
pool
=
mp
.
Pool
(
processes
=
num_processes
)
pool
=
mp
.
Pool
(
processes
=
num_processes
)
...
...
This diff is collapsed.
Click to expand it.
public/index.html
+
2
−
0
View file @
1a4e0503
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<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>
<title>
Formula Student World Elo
</title>
<script
defer
data-domain=
"fselo.get-racing.de"
src=
"https://analytics.get-racing.de/js/script.js"
></script>
<script
defer
data-domain=
"fselo.get-racing.de"
src=
"https://analytics.get-racing.de/js/script.js"
></script>
<style>
<style>
...
...
This diff is collapsed.
Click to expand it.
team_page.py
+
1
−
0
View file @
1a4e0503
...
@@ -6,6 +6,7 @@ def get_team_page_html(self, team_name, team_data, team_competitions):
...
@@ -6,6 +6,7 @@ def get_team_page_html(self, team_name, team_data, team_competitions):
<html lang=
"
en
"
>
<html lang=
"
en
"
>
<head>
<head>
<meta charset=
"
UTF-8
"
>
<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
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1.0
"
>
<title>
{
team_name
}
- Elo Profile</title>
<title>
{
team_name
}
- Elo Profile</title>
{
self
.
header_snippet
}
{
self
.
header_snippet
}
...
...
This diff is collapsed.
Click to expand it.
world_ranking_list.py
+
1
−
0
View file @
1a4e0503
...
@@ -6,6 +6,7 @@ def get_world_ranking_html(self, sorted_teams):
...
@@ -6,6 +6,7 @@ def get_world_ranking_html(self, sorted_teams):
<html lang=
"
en
"
>
<html lang=
"
en
"
>
<head>
<head>
<meta charset=
"
UTF-8
"
>
<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
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1.0
"
>
<title>Formula Student
{
self
.
competition_type
}
Elo Rankings</title>
<title>Formula Student
{
self
.
competition_type
}
Elo Rankings</title>
{
self
.
header_snippet
}
{
self
.
header_snippet
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment