From 5a56fff040dd437f8d5f94007fbfe371c874d1c4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 11:10:51 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20principles=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20call=20the=20loop=20index?= =?UTF-8?q?=20index,=20clear=20of=20the=20imported=20position?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/routing_figures/measure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/routing_figures/measure.py b/bin/routing_figures/measure.py index 8bcc9411..6dced9ac 100644 --- a/bin/routing_figures/measure.py +++ b/bin/routing_figures/measure.py @@ -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: