From 796febb91f745d9e9d8a9cdf7f20f46fae348fc4 Mon Sep 17 00:00:00 2001 From: Lili Date: Thu, 13 Oct 2022 13:53:42 +0200 Subject: [PATCH] dashboard fixes --- tlapbot/owncast_redeem_dashboard.py | 2 +- tlapbot/templates/dashboard.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tlapbot/owncast_redeem_dashboard.py b/tlapbot/owncast_redeem_dashboard.py index e0fd390..e38f81b 100644 --- a/tlapbot/owncast_redeem_dashboard.py +++ b/tlapbot/owncast_redeem_dashboard.py @@ -1,6 +1,6 @@ from flask import render_template, Blueprint 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 bp = Blueprint('redeem_dashboard', __name__) diff --git a/tlapbot/templates/dashboard.html b/tlapbot/templates/dashboard.html index 5469bd2..daa1a84 100644 --- a/tlapbot/templates/dashboard.html +++ b/tlapbot/templates/dashboard.html @@ -12,11 +12,12 @@ Counters + {% for counter in counters %} - {% for counter in counters %} {{ counter[0] }} - {{ counter[1] }} + {{ counter[1] }} + {% endfor %} {% endif %}