make winrate a percent

pull/29/head
Aevann1 2022-11-28 07:09:19 +02:00
parent fe0da05415
commit c35d69ba06
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@
<td data-sort-key="{{user.username.lower() if user else ''}}">{%- include 'user_in_table.html' -%}</td>
<td>{{r[1]}}</td>
<td>{{r[2]}}</td>
{% set ratio = (r[1]/r[2])|string %}
<td>{{ratio[:3]}}</td>
{% set ratio = (r[1]/r[2]*100)|string %}
<td>{{ratio[:3]}}%</td>
<td>{{r[3]}}</td>
</tr>
{% endfor %}