From a85dc265c4ca559adc5a773b56cdb76ce3eb5f16 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Fri, 3 Apr 2026 13:05:34 -0500 Subject: [PATCH] Fixup invoke list --- .gitignore | 1 + matrix_goal_bot/db.py | 12 ------------ matrix_goal_bot/tasks.py | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 1fd634e..611ac72 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ build # Chatbot output session.txt +*.db diff --git a/matrix_goal_bot/db.py b/matrix_goal_bot/db.py index 4c2d477..405893a 100644 --- a/matrix_goal_bot/db.py +++ b/matrix_goal_bot/db.py @@ -179,15 +179,3 @@ class Data(): # Someday: Notes on each - def list(self): - results = [] - with Session(self.engine) as session: - cmd = select(Chore) - chores = session.exec(cmd).all() - if(not chores): - retuls.append('None Found') - - for chore in chores: - results.append(Data.check_chore(session, chore.id)) - return results - diff --git a/matrix_goal_bot/tasks.py b/matrix_goal_bot/tasks.py index 21ccfd7..e9eb7c5 100644 --- a/matrix_goal_bot/tasks.py +++ b/matrix_goal_bot/tasks.py @@ -20,7 +20,7 @@ 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) -- 2.47.3