Skip to content

Commit 41f18ca

Browse files
committed
Fix: Align ID extraction logic with _new_id using index [1]
1 parent 73b11ce commit 41f18ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agents/s07_task_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def list_all(self) -> str:
114114
tasks = []
115115
files = sorted(
116116
self.dir.glob("task_*.json"),
117-
key=lambda f: int(f.stem.split("_")[-1])
117+
key=lambda f: int(f.stem.split("_")[1])
118118
)
119119
for f in files:
120120
tasks.append(json.loads(f.read_text()))

0 commit comments

Comments
 (0)