add:新增永久保存,但是会永久占用一个码,问题待解决

This commit is contained in:
lan
2023-02-11 19:41:44 +08:00
parent f72e121406
commit 71e7c6170b
4 changed files with 22 additions and 13 deletions
+2 -1
View File
@@ -1,7 +1,6 @@
import uuid
from starlette.config import Config
import configparser
# 配置文件.env,存放为data/.env
config = Config("data/.env")
@@ -32,6 +31,8 @@ class Settings:
ERROR_MINUTE = config('ERROR_MINUTE', cast=int, default=10)
# 上传次数
UPLOAD_COUNT = config('UPLOAD_COUNT', cast=int, default=60)
# 是否允许永久保存
ENABLE_PERMANENT = config('ENABLE_PERMANENT', cast=bool, default=True)
# 上传限制分钟数
UPLOAD_MINUTE = config('UPLOAD_MINUTE', cast=int, default=1)
# 删除过期文件的间隔(分钟)