ruff,私聊视为提及了bot

This commit is contained in:
Windpicker-owo
2025-09-20 22:34:22 +08:00
parent 3baf4c533a
commit df3c616d09
75 changed files with 1055 additions and 885 deletions

View File

@@ -301,4 +301,4 @@ async def has_active_plans(month: str) -> bool:
return result.scalar_one() > 0
except Exception as e:
logger.error(f"检查 {month} 的有效月度计划时发生错误: {e}")
return False
return False

View File

@@ -226,4 +226,4 @@ class MonthlyPlanLLMGenerator:
return plans
except Exception as e:
logger.error(f"解析月度计划响应时发生错误: {e}")
return []
return []

View File

@@ -105,4 +105,4 @@ class PlanManager:
@staticmethod
async def get_plans_for_schedule(month: str, max_count: int) -> List:
avoid_days = global_config.planning_system.avoid_repetition_days
return await get_smart_plans_for_daily_schedule(month, max_count=max_count, avoid_days=avoid_days)
return get_smart_plans_for_daily_schedule(month, max_count=max_count, avoid_days=avoid_days)

View File

@@ -96,4 +96,4 @@ class ScheduleData(BaseModel):
covered[i] = True
# 检查是否所有分钟都被覆盖
return all(covered)
return all(covered)