]> us-delaporte.pagekite.me Git - matrix-goal-bot.git/blobdiff - bot.py
Fixup
[matrix-goal-bot.git] / 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'):
-        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}')