From d05dc5c5c1daebfdb4803d7075ff846ad7b3be25 Mon Sep 17 00:00:00 2001 From: xuyonghao <898441624@qq.com> Date: 星期一, 30 十二月 2024 17:05:36 +0800 Subject: [PATCH] 使用调度器定时删除文件 --- app/models/base_model.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/models/base_model.py b/app/models/base_model.py index 580f262..4f66ee2 100644 --- a/app/models/base_model.py +++ b/app/models/base_model.py @@ -6,8 +6,7 @@ from app.config.config import settings -DATABASE_URL = os.getenv('DATABASE_URL') or settings.database_url - +DATABASE_URL = settings.database_url engine = create_engine(DATABASE_URL, pool_size=20, max_overflow=50) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) -- Gitblit v1.8.0