auto-sync: 2026-06-07 11:57:38
Deploy / ci (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Deploy / notify-deploy-failure (push) Blocked by required conditions

This commit is contained in:
cfdaily
2026-06-07 11:57:38 +08:00
parent b69636c408
commit 70f4e026f1
+2 -3
View File
@@ -15,7 +15,7 @@ import logging
import os import os
import time import time
from datetime import datetime from datetime import datetime
from pathlib import PurePath from pathlib import Path, PurePath
from typing import Any, Dict, List, Optional, Set, Tuple from typing import Any, Dict, List, Optional, Set, Tuple
import httpx import httpx
@@ -134,9 +134,8 @@ def _calc_risk_level(changed_files: List[str]) -> str:
MAIL_PROJECT_ID = "_mail" MAIL_PROJECT_ID = "_mail"
def _mail_db_path() -> "Path": def _mail_db_path() -> Path:
"""获取 Mail 数据库路径,确保目录存在。""" """获取 Mail 数据库路径,确保目录存在。"""
from pathlib import Path as P
root = get_data_root() root = get_data_root()
db = root / MAIL_PROJECT_ID / "blackboard.db" db = root / MAIL_PROJECT_ID / "blackboard.db"
db.parent.mkdir(parents=True, exist_ok=True) db.parent.mkdir(parents=True, exist_ok=True)