]> us-delaporte.pagekite.me Git - matrix-goal-bot.git/commitdiff
Update list formatting
authorEdward Delaporte <edward@delaporte.us>
Sat, 6 Jun 2026 19:32:55 +0000 (14:32 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sat, 6 Jun 2026 19:32:55 +0000 (14:32 -0500)
matrix_goal_bot/bot.py
matrix_goal_bot/db.py

index ade650a6fe154ba02033d59a525984dfd3385885..3da43ce9cef81f0fac125708f20c44d9d2700ca8 100644 (file)
@@ -133,7 +133,8 @@ class GoalBot():
         if match.command('list'):
             logger.debug('Asked to list current goals...')
             goals = self.data.get_current_goals()
         if match.command('list'):
             logger.debug('Asked to list current goals...')
             goals = self.data.get_current_goals()
-            results = ['# Goals list...']
+            results = ['# Goals list']
+            results.append('------------']
             for goal in goals:
                 results.append(str(goal))
             return results
             for goal in goals:
                 results.append(str(goal))
             return results
index a9d1b879d6b9b6f3d5005378b13deccd4d10484c..45da217215efa5d8b55c30485ace825c78ad8205 100644 (file)
@@ -94,9 +94,10 @@ def _get_goals_by_vision(goals) -> List[str]:
             visions[vision] = []
         visions[vision].append(str(goal))
     for vision in visions:
             visions[vision] = []
         visions[vision].append(str(goal))
     for vision in visions:
-        results.append(f' ## {vision}')
+        results.append('') # Make some space
+        results.append(f'## {vision}')
         for item in visions[vision]:
         for item in visions[vision]:
-            results.append(item)
+            results.append(' + ' + item)
     return results
 
 
     return results