fix: address PR #100 review comments

This commit is contained in:
Abhimanyu Saharan
2026-03-03 05:17:31 +05:30
parent 7fa0959f63
commit bee40c36cd
2 changed files with 11 additions and 8 deletions

View File

@@ -266,9 +266,8 @@ async def task_counts_for_board(
for legacy_task_id, total, pending in list(await session.exec(legacy_statement)):
if legacy_task_id is None:
continue
task_uuid = legacy_task_id
previous = counts.get(task_uuid, (0, 0))
counts[task_uuid] = (
previous = counts.get(legacy_task_id, (0, 0))
counts[legacy_task_id] = (
previous[0] + int(total or 0),
previous[1] + int(pending or 0),
)