From 92a2a77c80e36f024dd08fc2b7482b87c1e3251e Mon Sep 17 00:00:00 2001 From: Lili Date: Wed, 4 Jan 2023 12:37:56 +0100 Subject: [PATCH] add customized prefix to dashboard --- tlapbot/owncast_redeem_dashboard.py | 1 + tlapbot/templates/dashboard.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tlapbot/owncast_redeem_dashboard.py b/tlapbot/owncast_redeem_dashboard.py index 82b5acd..6007787 100644 --- a/tlapbot/owncast_redeem_dashboard.py +++ b/tlapbot/owncast_redeem_dashboard.py @@ -20,6 +20,7 @@ def dashboard(): queue=pretty_redeem_queue(db), counters=all_counters(db), redeems=current_app.config['REDEEMS'], + prefix=current_app.config['PREFIX'], username=username, users=users, utc_timezone=utc_timezone) diff --git a/tlapbot/templates/dashboard.html b/tlapbot/templates/dashboard.html index 785b9cd..58ef153 100644 --- a/tlapbot/templates/dashboard.html +++ b/tlapbot/templates/dashboard.html @@ -97,7 +97,7 @@ {% for redeem, redeem_info in redeems.items() %} - !{{ redeem }} + {{ prefix }}{{ redeem }} {{ redeem_info["price"] }} {{ redeem_info["type"] }} {% if redeem_info["info"] %}