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

@ -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>