forcer l'affichage des nombre un jusqu'a un chiffre apres la virgule
CI - Security, Lint & Tests / validate (push) Canceled after 0s

This commit is contained in:
cedrick2711
2026-09-09 13:54:51 -04:00
parent 32c112ceea
commit a9b33b30f5
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -58,7 +58,7 @@
{{ entry.player.username }} {{ entry.player.username }}
</a> </a>
</td> </td>
<td><span class="score">{{ entry.avg if entry.avg is not none else '-' }}</span></td> <td><span class="score">{{ entry.avg | round(1) if entry.avg is not none else '-' }}</span></td>
<td>{{ entry.count }}</td> <td>{{ entry.count }}</td>
<td> <td>
<a href="{{ url_for('evaluations.player_evaluations', player_id=entry.player.id) }}" class="btn btn-sm btn-outline" title="{{ _('Open player view') }}"> <a href="{{ url_for('evaluations.player_evaluations', player_id=entry.player.id) }}" class="btn btn-sm btn-outline" title="{{ _('Open player view') }}">
@@ -90,7 +90,7 @@
{% for score in ev.scores %} {% for score in ev.scores %}
<td>{{ score if score is not none else '-' }}</td> <td>{{ score if score is not none else '-' }}</td>
{% endfor %} {% endfor %}
<td><span class="score">{{ ev.overall if ev.overall is not none else '-' }}</span></td> <td><span class="score">{{ ev.overall | round(1) if ev.overall is not none else '-' }}</span></td>
<td>{{ ev.position or '-' }}</td> <td>{{ ev.position or '-' }}</td>
<td>{{ ev.date.strftime('%m/%d/%Y') if ev.date else '-' }}</td> <td>{{ ev.date.strftime('%m/%d/%Y') if ev.date else '-' }}</td>
</tr> </tr>
+3 -3
View File
@@ -38,7 +38,7 @@
<div class="stat-card"> <div class="stat-card">
<div class="stat-icon bg-info"><i class="fas fa-star"></i></div> <div class="stat-icon bg-info"><i class="fas fa-star"></i></div>
<div class="stat-info"> <div class="stat-info">
<h3>{{ combined_average if combined_average is not none else '-' }}</h3> <h3>{{ combined_average | round(1) if combined_average is not none else '-' }}</h3>
<p>{{ _('Combined average') }} &middot; {{ evaluation_count }} {{ _('evaluations') }}</p> <p>{{ _('Combined average') }} &middot; {{ evaluation_count }} {{ _('evaluations') }}</p>
</div> </div>
</div> </div>
@@ -46,7 +46,7 @@
<div class="stat-card stat-card-sm"> <div class="stat-card stat-card-sm">
<div class="stat-icon bg-info"><i class="fas fa-chart-bar"></i></div> <div class="stat-icon bg-info"><i class="fas fa-chart-bar"></i></div>
<div class="stat-info"> <div class="stat-info">
<h3>{{ avg if avg is not none else '-' }}</h3> <h3>{{ avg | round(1) if avg is not none else '-' }}</h3>
<p>{{ label }}</p> <p>{{ label }}</p>
</div> </div>
</div> </div>
@@ -75,7 +75,7 @@
{% for score in ev.scores %} {% for score in ev.scores %}
<td>{{ score if score is not none else '-' }}</td> <td>{{ score if score is not none else '-' }}</td>
{% endfor %} {% endfor %}
<td><span class="score">{{ ev.overall if ev.overall is not none else '-' }}</span></td> <td><span class="score">{{ ev.overall | round(1) if ev.overall is not none else '-' }}</span></td>
<td>{{ ev.position or '-' }}</td> <td>{{ ev.position or '-' }}</td>
<td>{{ ev.date.strftime('%m/%d/%Y') if ev.date else '-' }}</td> <td>{{ ev.date.strftime('%m/%d/%Y') if ev.date else '-' }}</td>
</tr> </tr>