将 users 改为 Path(users),使 / 运算符可以正确拼接路径。

This commit is contained in:
朱潮 2026-03-31 10:06:07 +08:00
parent 9cc0d72430
commit 4090b4d734

View File

@ -47,7 +47,7 @@ TIMEZONE_OFFSET_MAP = {
def get_tasks_dir(bot_id: str, user_id: str) -> Path:
"""获取用户任务目录路径"""
return "users" / user_id
return Path("users") / user_id
def get_tasks_file(bot_id: str, user_id: str) -> Path: