update dashboard + dashboard helpers

also untested
This commit is contained in:
2022-10-12 15:48:57 +02:00
parent 5384076f64
commit 3c5a09b2de
3 changed files with 26 additions and 9 deletions
+9
View File
@@ -141,6 +141,15 @@ def clear_redeem_queue(db):
except Error as e:
print("Error occured deleting redeem queue:", e.args[0])
def all_counters(db):
try:
cursor = db.execute(
"""SELECT counters.name, counters.count FROM counters"""
)
return cursor.fetchall()
except Error as e:
print("Error occured selecting all counters:", e.args[0])
def pretty_redeem_queue(db):
try:
cursor = db.execute(