proper description for current streak

This commit is contained in:
Maximilian Keßler 2023-12-22 11:49:26 +01:00
parent ef48441483
commit dee13076e4
Signed by: max
GPG key ID: BCC5A619923C0BA5
2 changed files with 3 additions and 3 deletions

View file

@ -447,7 +447,7 @@ def render_leaderboard():
leaderboards = { leaderboards = {
'Player Rating': rating_lists, 'Player Rating': rating_lists,
'Maximum Streak': streak_lists, 'Maximum Streak (Current Streak)': streak_lists,
} }
env = jinja2.Environment(loader=jinja2.FileSystemLoader('templates')) env = jinja2.Environment(loader=jinja2.FileSystemLoader('templates'))

View file

@ -73,11 +73,11 @@
{% for category, leaderboard in leaderboards.items() %} {% for category, leaderboard in leaderboards.items() %}
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<button class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#{{ category|lower|replace(' ', '-') }}"> <button class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#{{ category|lower|replace(' ', '-')|replace('(', '-')|replace(')', '-') }}">
{{ category }} {{ category }}
</button> </button>
</div> </div>
<div id="{{ category|lower|replace(' ', '-') }}" class="collapse" data-parent="#leaderboards-{{rating_type}}-data"> <div id="{{ category|lower|replace(' ', '-')|replace('(', '-')|replace(')', '-') }}" class="collapse" data-parent="#leaderboards-{{rating_type}}-data">
<div class="card-body"> <div class="card-body">
<table class="table table-striped"> <table class="table table-striped">
{% for entry in leaderboard[rating_type] %} {% for entry in leaderboard[rating_type] %}