From: Edward Delaporte Date: Sat, 28 Mar 2026 02:10:28 +0000 (-0500) Subject: Fixup X-Git-Url: https://apps.delaporte.us/gitweb/matrix-goal-bot.git/commitdiff_plain/e6f3ab3452c43a5956a4ae54eb1ff3f39a27a337?ds=inline Fixup --- diff --git a/matrix_goal_bot/db.py b/matrix_goal_bot/db.py index e232cd9..4c2d477 100644 --- a/matrix_goal_bot/db.py +++ b/matrix_goal_bot/db.py @@ -4,9 +4,6 @@ from datetime import datetime as dt from sqlmodel import Field, Session, SQLModel, create_engine, select, text, Relationship -## Todo List -# - [ ] goal / vision / task - DATE_FORMAT = '%Y-%m-%d' @@ -15,7 +12,7 @@ def today(): logger = logging.getLogger(__name__) -logging.basicConfig(filename='chore.log', encoding='utf-8', level=logging.DEBUG) +logging.basicConfig(filename='goals.log', encoding='utf-8', level=logging.DEBUG) class Vision(SQLModel, table=True): @@ -65,7 +62,7 @@ def pretty_print(goal, tasks): class Data(): def __init__(self, db_file=None): if not db_file: - db_file = os.path.join(os.environ.get('MATRIX_DATA_DIR'), 'goals.db') + db_file = os.path.join(os.environ.get('MATRIX_DATA_DIR', ''), 'goals.db') self.file = db_file self.engine = self.get_engine()