dashboard wrong points workaround

dashboard now shows the points of every user with same username
This commit is contained in:
2022-10-20 16:10:28 +02:00
parent f0077c56dc
commit 2cf2050dac
3 changed files with 14 additions and 16 deletions
+6 -4
View File
@@ -5,17 +5,19 @@
<title>Redeems Dashboard</title>
</head>
<body>
{% if (username and user_points ) %}
{% if (username and users ) %}
<table>
<thead>
<tr>
<th>Your points balance:</th>
<th>Points balance:</th>
</tr>
</thead>
{% for user in users %}
<tbody>
<td> {{ username }} </td>
<td> {{ user_points }} </td>
<td> {{ user[0] }} </td>
<td> {{ user[1] }} </td>
</tbody>
{% endfor %}
</table>
{% endif %}