]> apps.delaporte.us Git - matrix-goal-bot.git/blobdiff - matrix_goal_bot/tasks.py
Fixup
[matrix-goal-bot.git] / matrix_goal_bot / tasks.py
index 4fd4ce5d30200a42d75f47e31382ec0600f0f9eb..61413ec98ae57928e3afabbc5f5924e0422aae47 100644 (file)
@@ -12,6 +12,12 @@ def add_goal(c, name):
     result = Data().add_goal(name)
     print(result)
 
     result = Data().add_goal(name)
     print(result)
 
+@task
+def add_vision(c, name):
+    result = Data().add_vision(name)
+    print(result)
+
+
 @task
 def close_goal(c, goal_id):
     result = Data().complete_goal(goal_id)
 @task
 def close_goal(c, goal_id):
     result = Data().complete_goal(goal_id)
@@ -41,13 +47,20 @@ def remove_task(c, goal_id, name):
     print(result)
 
 
     print(result)
 
 
-
 @task
 def list(c):
     goals = Data().get_current_goals()
     for goal in goals:
         print(goal)
 
 @task
 def list(c):
     goals = Data().get_current_goals()
     for goal in goals:
         print(goal)
 
+
+@task
+def list_visions(c):
+    items = Data().get_all_visions()
+    for item in items:
+        print(item)
+
+
 @task
 def later(c, goal_id):
     result = Data().put_off_goal(goal_id)
 @task
 def later(c, goal_id):
     result = Data().put_off_goal(goal_id)
@@ -98,3 +111,14 @@ def setup(c):
     results = Data().setup()
     print(results)
 
     results = Data().setup()
     print(results)
 
+
+@task
+def wins(c):
+    results = Data().wins()
+    for line in results:
+        print(line)
+
+@task
+def assign_to_vision(c, goal_id, vision_id):
+    result = Data().assign_vision(goal_id, vision_id)
+    print(result)