def pretty_print(goal, tasks):
results = []
results.append(f' ## {goal}')
+ if not tasks:
+ results.append('-- Nothing to list --')
+
for task in tasks:
if(task.complete_date):
results.append(f' - [x] {task}')
else:
results.append(f' - [ ] {task}')
- else:
- results.append('-- Nothing to list --')
return results
goal = session.exec(cmd).first()
goal.vision_id = vision_id
session.commit()
- return 'Success'
def add_note(self, note, goal):
'''Notes print with the goal.'''