Fixed the database issue
This commit is contained in:
@ -20,6 +20,8 @@ async def init_db():
|
|||||||
deadline TEXT,
|
deadline TEXT,
|
||||||
status TEXT,
|
status TEXT,
|
||||||
priority TEXT,
|
priority TEXT,
|
||||||
|
reminder_time DATETIME,
|
||||||
|
reminder_sent BOOLEAN DEFAULT FALSE,
|
||||||
FOREIGN KEY(project_id) REFERENCES projects(id))
|
FOREIGN KEY(project_id) REFERENCES projects(id))
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
|
@ -2,7 +2,7 @@ import logging
|
|||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
# Setup basic configuration
|
# 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',
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||||
datefmt='%Y-%m-%d %H:%M:%S')
|
datefmt='%Y-%m-%d %H:%M:%S')
|
||||||
|
|
||||||
@ -15,4 +15,4 @@ handler.setFormatter(formatter)
|
|||||||
# Configure the logger
|
# Configure the logger
|
||||||
logger = logging.getLogger('Nessa')
|
logger = logging.getLogger('Nessa')
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
logger.setLevel(logging.DEBUG) # Set to DEBUG for comprehensive logging
|
logger.setLevel(logging.ERROR) # Set to DEBUG for comprehensive logging
|
Reference in New Issue
Block a user