fix: Ruff
This commit is contained in:
@@ -192,7 +192,7 @@ class InterestMonitorApp:
|
||||
main_mind_entries.sort(key=lambda x: x[0])
|
||||
recent_entries = main_mind_entries[-MAX_QUEUE_SIZE:]
|
||||
self.main_mind_history.clear()
|
||||
for ts, entry in recent_entries:
|
||||
for _ts, entry in recent_entries:
|
||||
self.main_mind_history.append(entry)
|
||||
if recent_entries:
|
||||
self.last_main_mind_timestamp = recent_entries[-1][0]
|
||||
|
||||
@@ -144,7 +144,7 @@ class MaiStateManager:
|
||||
# 辅助函数:根据 prevent_offline_state 标志调整目标状态
|
||||
def _resolve_offline(candidate_state: MaiState) -> MaiState:
|
||||
if prevent_offline_state and candidate_state == MaiState.OFFLINE:
|
||||
logger.debug(f"阻止进入 OFFLINE,改为 PEEKING")
|
||||
logger.debug("阻止进入 OFFLINE,改为 PEEKING")
|
||||
return MaiState.PEEKING
|
||||
return candidate_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user