Fixed the database issue

This commit is contained in:
Dan
2024-05-05 17:29:53 -04:00
parent 38485c5a98
commit ff15da0061
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,8 @@ async def init_db():
deadline TEXT,
status TEXT,
priority TEXT,
reminder_time DATETIME,
reminder_sent BOOLEAN DEFAULT FALSE,
FOREIGN KEY(project_id) REFERENCES projects(id))
'''
)

View File

@ -2,7 +2,7 @@ import logging
from logging.handlers import RotatingFileHandler
# Setup basic configuration
logging.basicConfig(level=logging.DEBUG, # Change to DEBUG for detailed output during development
logging.basicConfig(level=logging.ERROR, # Change to DEBUG for detailed output during development
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
@ -15,4 +15,4 @@ handler.setFormatter(formatter)
# Configure the logger
logger = logging.getLogger('Nessa')
logger.addHandler(handler)
logger.setLevel(logging.DEBUG) # Set to DEBUG for comprehensive logging
logger.setLevel(logging.ERROR) # Set to DEBUG for comprehensive logging