]> apps.delaporte.us Git - matrix-goal-bot.git/commitdiff
Fixup
authorEdward Delaporte <edward@delaporte.us>
Mon, 23 Mar 2026 23:21:57 +0000 (18:21 -0500)
committerEdward Delaporte <edward@delaporte.us>
Mon, 23 Mar 2026 23:21:57 +0000 (18:21 -0500)
bot.py

diff --git a/bot.py b/bot.py
index b8f8f0c1120a600dc92ba62fb3dd20bff28f1aab..0ac709e8083715e89e4fbe441d0b076c3f981634 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -54,8 +54,9 @@ async def do_goal(match):
         return [result]
 
     if match.command('print'):
         return [result]
 
     if match.command('print'):
-        goal_id = new = match.args()[1]
-        goal,tasks = Data().get_goal(id)
+        goal_id = int(match.args()[1])
+        logger.debug(f'Searching for goal {goal_id}...')
+        goal,tasks = Data().get_goal(goal_id)
 
         results = []
         results.append(f' ## {goal}')
 
         results = []
         results.append(f' ## {goal}')