Answer principles round 2: 0 🔴, 0 🟡; call the loop index index, clear of the imported position
This commit is contained in:
@@ -125,8 +125,8 @@ def add(tokens: dict[str, collections.Counter[str]], project: str, kind: str, ru
|
|||||||
tokens["subagent type"][kind] += spent
|
tokens["subagent type"][kind] += spent
|
||||||
tokens["rung"][rung] += spent
|
tokens["rung"][rung] += spent
|
||||||
# Split whole, the first tools taking the remainder, so the tool table adds up to the others.
|
# Split whole, the first tools taking the remainder, so the tool table adds up to the others.
|
||||||
for position, tool in enumerate(tools):
|
for index, tool in enumerate(tools):
|
||||||
tokens["tool"][tool] += spent // len(tools) + (position < spent % len(tools))
|
tokens["tool"][tool] += spent // len(tools) + (index < spent % len(tools))
|
||||||
|
|
||||||
|
|
||||||
def rung_at(cycles: list[tuple[str, str]], timestamp: str) -> Rung | str:
|
def rung_at(cycles: list[tuple[str, str]], timestamp: str) -> Rung | str:
|
||||||
|
|||||||
Reference in New Issue
Block a user