return session.exec(cmd).all()
+ def get_done_goals(self):
+ '''List all goals'''
+ with Session(self.engine) as session:
+ cmd = select(Goal).where(Goal.complete_date != None)
+ return session.exec(cmd).all()
+
+
def get_goal(self, id):
with Session(self.engine) as session:
cmd = select(Goal).where(Goal.id == id)