Answer principles round 2: 0 🔴, 0 🟡; call the loop index index, clear of the imported position

This commit is contained in:
2026-10-23 11:10:51 +02:00
parent bd64bd59c2
commit 5a56fff040
+2 -2
View File
@@ -125,8 +125,8 @@ def add(tokens: dict[str, collections.Counter[str]], project: str, kind: str, ru
tokens["subagent type"][kind] += spent
tokens["rung"][rung] += spent
# Split whole, the first tools taking the remainder, so the tool table adds up to the others.
for position, tool in enumerate(tools):
tokens["tool"][tool] += spent // len(tools) + (position < spent % len(tools))
for index, tool in enumerate(tools):
tokens["tool"][tool] += spent // len(tools) + (index < spent % len(tools))
def rung_at(cycles: list[tuple[str, str]], timestamp: str) -> Rung | str: