dashboard fixes

This commit is contained in:
Lili (Tlapka) 2022-10-13 13:53:42 +02:00
parent dda415f87a
commit 796febb91f
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
from flask import render_template, Blueprint from flask import render_template, Blueprint
from tlapbot.db import get_db from tlapbot.db import get_db
from tlapbot.owncast_helpers import pretty_redeem_queue from tlapbot.owncast_helpers import pretty_redeem_queue, all_counters
from datetime import datetime, timezone from datetime import datetime, timezone
bp = Blueprint('redeem_dashboard', __name__) bp = Blueprint('redeem_dashboard', __name__)

View File

@ -12,11 +12,12 @@
<th>Counters</th> <th>Counters</th>
</tr> </tr>
</thead> </thead>
<tbody>
{% for counter in counters %} {% for counter in counters %}
<tbody>
<td> {{ counter[0] }} </td> <td> {{ counter[0] }} </td>
<td> {{ counter[1] }} </td> <td> {{ counter[1] }} </td>
</tbody> </tbody>
{% endfor %}
</table> </table>
{% endif %} {% endif %}