Update agents/s07_task_system.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
to7for
2026-03-23 21:21:26 +08:00
committed by GitHub
parent 70aa7a5b4c
commit 73b11ce18c

View File

@@ -112,8 +112,8 @@ class TaskManager:
def list_all(self) -> str:
tasks = []
files = sorted(
self.dir.glob("task_*.json"),
files = sorted(
self.dir.glob("task_*.json"),
key=lambda f: int(f.stem.split("_")[-1])
)
for f in files: