diff --git a/app/__init__.py b/app/__init__.py index 3feae1b..25ddae2 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -26,15 +26,6 @@ def create_app(): # Initialize database tables with app.app_context(): - # Create data directory if it doesn't exist - import os - db_path = app.config.get('SQLALCHEMY_DATABASE_URI', '') - if db_path.startswith('sqlite:///'): - db_file_path = db_path.replace('sqlite:///', '') - db_dir = os.path.dirname(db_file_path) - if db_dir and not os.path.exists(db_dir): - os.makedirs(db_dir, exist_ok=True) - db.create_all() return app