add commas

master
Aevann 2024-04-18 19:02:51 +02:00
parent 5e5a596d2e
commit 03cbf7eb91
2 changed files with 2 additions and 2 deletions

View File

@ -442,7 +442,7 @@ def all_upvoters_downvoters(v, username, vote_dir, is_who_simps_hates):
received_given = 'given' if is_who_simps_hates else 'received'
if total_items == 1: vote_str = vote_str[:-1] # we want to unpluralize if only 1 vote
total_items = f'{total_items} {vote_str} {received_given}'
total_items = f'{commas(total_items)} {vote_str} {received_given}'
name2 = f'Who @{username} {simps_haters}' if is_who_simps_hates else f"@{username}'s {simps_haters}"

View File

@ -17,7 +17,7 @@
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index+PAGE_SIZE*(page-1)}}</td>
<td>{% include "user_in_table.html" %}</td>
<td><a href="{{request.path}}/@{{user.username}}/posts">{{num}}</a></td>
<td><a href="{{request.path}}/@{{user.username}}/posts">{{num|commas}}</a></td>
</tr>
{% endfor %}
{% if pos and (pos[0] > 25 or not pos[1]) %}