dashboard milestones stub

This commit is contained in:
2023-03-14 15:42:14 +01:00
parent 2732967e26
commit 68b8588c76
3 changed files with 69 additions and 41 deletions
+10
View File
@@ -208,6 +208,16 @@ def add_to_milestone(db, redeem_name, points):
return False
def all_milestones(db):
try:
cursor = db.execute(
"""SELECT name, count, goal FROM milestones"""
)
return cursor.fetchall()
except Error as e:
current_app.logger.error(f"Error occured selecting all milestones: {e.args[0]}")
def all_counters(db):
try:
cursor = db.execute(