Implement database integration for settings management and update .gitignore for local development data

This commit is contained in:
Admin9705
2025-06-12 17:58:26 -04:00
parent 94e4423ea5
commit 6420b9e93b
4 changed files with 431 additions and 127 deletions

10
main.py
View File

@@ -289,6 +289,16 @@ def main():
# Register cleanup handler
atexit.register(cleanup_handler)
# Initialize database with default configurations
try:
from primary.settings_manager import initialize_database
initialize_database()
huntarr_logger.info("Database initialization completed successfully")
except Exception as e:
huntarr_logger.error(f"Failed to initialize database: {e}")
huntarr_logger.error("Application may not function correctly without database")
# Continue anyway - the app might still work with defaults
background_thread = None
try: