ruff,私聊视为提及了bot
This commit is contained in:
@@ -290,4 +290,4 @@ def has_active_plans(month: str) -> bool:
|
||||
return count > 0
|
||||
except Exception as e:
|
||||
logger.error(f"检查 {month} 的有效月度计划时发生错误: {e}")
|
||||
return False
|
||||
return False
|
||||
|
||||
@@ -221,4 +221,4 @@ class MonthlyPlanLLMGenerator:
|
||||
return plans
|
||||
except Exception as e:
|
||||
logger.error(f"解析月度计划响应时发生错误: {e}")
|
||||
return []
|
||||
return []
|
||||
|
||||
@@ -102,4 +102,4 @@ class PlanManager:
|
||||
|
||||
def get_plans_for_schedule(self, month: str, max_count: int) -> List:
|
||||
avoid_days = global_config.planning_system.avoid_repetition_days
|
||||
return 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)
|
||||
|
||||
@@ -96,4 +96,4 @@ class ScheduleData(BaseModel):
|
||||
covered[i] = True
|
||||
|
||||
# 检查是否所有分钟都被覆盖
|
||||
return all(covered)
|
||||
return all(covered)
|
||||
|
||||
Reference in New Issue
Block a user