From 58243855895b332babfb7da1c8fbb44b2296b339 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Sep 2022 11:01:53 +0200 Subject: [PATCH] more commas in leaderboard --- files/templates/leaderboard.html | 52 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html index a3b7c4270..ac9e4959b 100644 --- a/files/templates/leaderboard.html +++ b/files/templates/leaderboard.html @@ -130,7 +130,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{user.stored_subscriber_count}} + {{"{:,}".format(user.stored_subscriber_count)}} {% endfor %} {% if pos2 %} @@ -141,7 +141,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{v.stored_subscriber_count}} + {{"{:,}".format(v.stored_subscriber_count)}} {% endif %} @@ -160,7 +160,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{user.post_count}} + {{"{:,}".format(user.post_count)}} {% endfor %} {% if pos3 %} @@ -171,7 +171,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{v.post_count}} + {{"{:,}".format(v.post_count)}} {% endif %} @@ -190,7 +190,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{user.comment_count}} + {{"{:,}".format(user.comment_count)}} {% endfor %} {% if pos4 %} @@ -201,7 +201,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{v.comment_count}} + {{"{:,}".format(v.comment_count)}} {% endif %} @@ -220,7 +220,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{user.received_award_count}} + {{"{:,}".format(user.received_award_count)}} {% endfor %} {% if pos5 %} @@ -231,7 +231,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{v.received_award_count}} + {{"{:,}".format(v.received_award_count)}} {% endif %} @@ -251,7 +251,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos9 and (pos9[0] > 25 or not pos9[1]) %} @@ -262,7 +262,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos9[1]}} + {{"{:,}".format(pos9[1])}} {% endif %} @@ -284,7 +284,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos11 and (pos11[0] > 25 or not pos11[1]) %} @@ -295,7 +295,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos11[1]}} + {{"{:,}".format(pos11[1])}} {% endif %} @@ -320,7 +320,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos12 and (pos12[0] > 25 or not pos12[1]) %} @@ -331,7 +331,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos12[1]}} + {{"{:,}".format(pos12[1])}} {% endif %} @@ -354,7 +354,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos13 and (pos13[0] > 25 or not pos13[1]) %} @@ -365,7 +365,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos13[1]}} + {{"{:,}".format(pos13[1])}} {% endif %} @@ -387,7 +387,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{user.winnings}} + {{"{:,}".format(user.winnings)}} {% endfor %} {% if pos14 %} @@ -398,7 +398,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{v.winnings}} + {{"{:,}".format(v.winnings)}} {% endif %} @@ -417,7 +417,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{user.winnings}} + {{"{:,}".format(user.winnings)}} {% endfor %} {% if pos15 %} @@ -428,7 +428,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{v.winnings}} + {{"{:,}".format(v.winnings)}} {% endif %} @@ -447,7 +447,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos16 and (pos16[0] > 25 or not pos16[1]) %} @@ -458,7 +458,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos16[1]}} + {{"{:,}".format(pos16[1])}} {% endif %} @@ -478,7 +478,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos17 and (pos17[0] > 25 or not pos17[1]) %} @@ -489,7 +489,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos17[1]}} + {{"{:,}".format(pos17[1])}} {% endif %} @@ -508,7 +508,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{"{:,}".format(num)}} {% endfor %} {% if pos18 and (pos18[0] > 25 or not pos18[1]) %} @@ -519,7 +519,7 @@ {% include "user_in_table.html" %} {% endwith %} - {{pos18[1]}} + {{"{:,}".format(pos18[1])}} {% endif %}