Update codebase and add coverage report
Removed an old run configuration, added a new coverage XML report, and updated multiple source files including main.py, middleware, models, routers, services, tests, and utility modules. Also updated pyproject.toml and the lock file. These changes likely include code improvements, test coverage updates, and dependency adjustments.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from loguru import logger as log
|
||||
|
||||
@@ -13,104 +14,11 @@ BackendVersion = "0.0.1"
|
||||
|
||||
IsPro = False
|
||||
|
||||
mode: str = os.getenv('MODE', 'master')
|
||||
|
||||
debug: bool = os.getenv("DEBUG", "false").lower() in ("true", "1", "yes") or False
|
||||
|
||||
if debug:
|
||||
log.info("Debug mode is enabled. This is not recommended for production use.")
|
||||
log.warning("Debug mode is enabled. This is not recommended for production use.")
|
||||
|
||||
database_url: str = os.getenv("DATABASE_URL", "sqlite+aiosqlite:///disknext.db")
|
||||
|
||||
tags_meta = [
|
||||
{
|
||||
"name": "site",
|
||||
"description": "站点",
|
||||
},
|
||||
{
|
||||
"name": "user",
|
||||
"description": "用户",
|
||||
},
|
||||
{
|
||||
"name": "user_settings",
|
||||
"description": "用户设置",
|
||||
},
|
||||
{
|
||||
"name": "share",
|
||||
"description": "分享",
|
||||
},
|
||||
{
|
||||
"name": "file",
|
||||
"description": "文件",
|
||||
},
|
||||
{
|
||||
"name": "aria2",
|
||||
"description": "离线下载",
|
||||
},
|
||||
{
|
||||
"name": "directory",
|
||||
"description": "目录",
|
||||
},
|
||||
{
|
||||
"name": "object",
|
||||
"description": "对象,文件和目录的抽象",
|
||||
},
|
||||
{
|
||||
"name": "callback",
|
||||
"description": "回调接口",
|
||||
},
|
||||
{
|
||||
"name": "oauth",
|
||||
"description": "OAuth 认证",
|
||||
},
|
||||
{
|
||||
"name": "pay",
|
||||
"description": "支付回调",
|
||||
},
|
||||
{
|
||||
"name": "upload",
|
||||
"description": "上传回调",
|
||||
},
|
||||
{
|
||||
"name": "vas",
|
||||
"description": "增值服务",
|
||||
},
|
||||
{
|
||||
"name": "tag",
|
||||
"description": "用户标签",
|
||||
},
|
||||
{
|
||||
"name": "webdav",
|
||||
"description": "WebDAV管理相关",
|
||||
},
|
||||
{
|
||||
"name": "admin",
|
||||
"description": "管理员接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_group",
|
||||
"description": "管理员组接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_user",
|
||||
"description": "管理员用户接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_file",
|
||||
"description": "管理员文件接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_aria2",
|
||||
"description": "管理员离线下载接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_policy",
|
||||
"description": "管理员策略接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_task",
|
||||
"description": "管理员任务接口",
|
||||
},
|
||||
{
|
||||
"name": "admin_vas",
|
||||
"description": "管理员增值服务接口",
|
||||
}
|
||||
]
|
||||
database_url: str = os.getenv("DATABASE_URL", "sqlite+aiosqlite:///disknext.db")
|
||||
Reference in New Issue
Block a user