From: Edward Delaporte Date: Fri, 3 Apr 2026 18:05:34 +0000 (-0500) Subject: Fixup invoke list X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-goal-bot.git/commitdiff_plain/a85dc265c4ca559adc5a773b56cdb76ce3eb5f16?hp=377204ce95f475f6dc70dc6dbf247c4cab7a7b62 Fixup invoke list --- 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)