X-Git-Url: https://apps.delaporte.us/gitweb/matrix-goal-bot.git/blobdiff_plain/4e1a9fea349dbabc177afde73208434130c16d13..93786fa2f6de5c71bf24c8587569100f8f7cfb31:/matrix_goal_bot/db.py?ds=inline diff --git a/matrix_goal_bot/db.py b/matrix_goal_bot/db.py index 533b684..a746c59 100644 --- a/matrix_goal_bot/db.py +++ b/matrix_goal_bot/db.py @@ -135,8 +135,9 @@ class Data(): '''List current goals''' with Session(self.engine) as session: cmd = select(Goal).where(Goal.complete_date == None).where(Goal.start_date <= today()) - # cmd = select(Goal).where(Goal.complete_date == None) - return session.exec(cmd).all() + results = session.exec(cmd).all() + logger.debug(f'Current goals: {results}') + return results def get_done_goals(self): '''List completed goals'''