From 83dd4b7f051c49a66091557a99aec296241ee00c Mon Sep 17 00:00:00 2001 From: Mattia Succurro Date: Fri, 13 Jun 2025 15:43:53 +0200 Subject: [PATCH] remove dead code --- freak/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/freak/__init__.py b/freak/__init__.py index 12e0837..a9cd278 100644 --- a/freak/__init__.py +++ b/freak/__init__.py @@ -18,15 +18,7 @@ __version__ = '0.3.1' APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__)) -dotenv.load_dotenv(os.path.join(APP_BASE_DIR, '.env')) - -correct_database_url = os.environ["DATABASE_URL"] - -def fix_database_url(): - if os.getenv('DATABASE_URL') != correct_database_url: - warnings.warn('mod_wsgi got the database wrong!', RuntimeWarning) - app.config['SQLALCHEMY_DATABASE_URI'] = correct_database_url - +dotenv.load_dotenv() app = Flask(__name__) app.secret_key = os.getenv('SECRET_KEY')