]> apps.delaporte.us Git - matrix-goal-bot.git/commitdiff
Fixup invoke list
authorEdward Delaporte <edward@delaporte.us>
Fri, 3 Apr 2026 18:05:34 +0000 (13:05 -0500)
committerEdward Delaporte <edward@delaporte.us>
Fri, 3 Apr 2026 18:05:34 +0000 (13:05 -0500)
.gitignore
matrix_goal_bot/db.py
matrix_goal_bot/tasks.py

index 1fd634e4f93e021f4e2580c493f3ef78eb52c650..611ac72baafa32df750b0cde8c834f23a8cda471 100644 (file)
@@ -11,3 +11,4 @@ build
 
 # Chatbot output
 session.txt
+*.db
index 4c2d4775ca5dd0094ac15cf519c146069bba79eb..405893a6c8b68abba3a356024112d36d15b2928d 100644 (file)
@@ -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
-
index 21ccfd785671169f30f977690055a44216cea318..e9eb7c5e1f67acfde9880b04d4f47250f6b7cf35 100644 (file)
@@ -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)