auto-sync: 2026-06-07 11:57:38
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user