Add place to leaderboard
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 14s

This commit is contained in:
2024-03-02 17:49:04 +01:00
parent 131965e61f
commit fcc29d2372
2 changed files with 11 additions and 8 deletions

View File

@ -32,11 +32,12 @@ import formula10.controller.error_controller
# TODO
# Statistics
# - Auto calculate points
# - Display points somewhere in race table? Below the name in the table header.
# - Display total points somewhere in race table? Below the name in the table header.
# - Auto calculate season points
# - Highlight currently correct values for some season guesses (e.g. current most dnfs, team winners, podiums)
# - Generate static diagram using chart.js + templating the js (funny yikes)
# - Which driver was voted most for dnf?
# - Interesting stats:
# - Which driver was voted most for dnf (top 5)?
# General
# - Decouple names from IDs + Fix Valtteri/Russel spelling errors

View File

@ -14,17 +14,19 @@
<table class="table table-bordered table-sm table-responsive mt-3">
<thead>
<tr>
<th scope="col" class="text-center" style="width: 1%;">User</th>
<th scope="col" class="text-center" style="width: 1%;">Points</th>
<th scope="col" class="text-center" style="width: 1%;">Total picks</th>
<th scope="col" class="text-center" style="width: 1%;">Correct picks</th>
<th scope="col" class="text-center" style="width: 1%;">Points per pick</th>
<th scope="col" class="text-center" style="min-width: 50px;">Place</th>
<th scope="col" class="text-center" style="min-width: 50px;">User</th>
<th scope="col" class="text-center" style="min-width: 100px;">Points</th>
<th scope="col" class="text-center" style="min-width: 100px;">Total picks</th>
<th scope="col" class="text-center" style="min-width: 100px;">Correct picks</th>
<th scope="col" class="text-center" style="min-width: 100px;">Points per pick</th>
</tr>
</thead>
<tbody>
{% for user in points.users_sorted_by_points() %}
<tr>
<td class="text-center text-nowrap">{{ loop.index }}</td>
<td class="text-center text-nowrap">{{ user.name }}</td>
<td class="text-center text-nowrap">{{ points.total_points_by(user.name) }}</td>
<td class="text-center text-nowrap">{{ points.picks_count(user.name) }}</td>