X-Git-Url: https://apps.delaporte.us/gitweb/matrix-goal-bot.git/blobdiff_plain/8e699b9e8768fedfc04203d639fd03144c2b617e..63ac7fdf6c0d6dc54d2631d9eee2151db1265660:/matrix_goal_bot/tasks.py diff --git a/matrix_goal_bot/tasks.py b/matrix_goal_bot/tasks.py index 21ccfd7..440afb4 100644 --- a/matrix_goal_bot/tasks.py +++ b/matrix_goal_bot/tasks.py @@ -20,7 +20,14 @@ def add_task(c, goal_id, name): @task def list(c): - goals = Data().list_goals() + goals = Data().get_all_goals() + for goal in goals: + print(goal) + + +@task +def list_done(c): + goals = Data().get_done_goals() for goal in goals: print(goal)