Files
troupe-standup/wizard-work/ledger/2026-10-29-queue-ledger/debug6.py
T

12 lines
459 B
Python

import csv
path = "/root/troupe-standup/wizard-work/ledger/2026-10-29-queue-ledger/queue-ledger.tsv"
with open(path, encoding="utf-8", newline="") as fh:
rows = list(csv.reader(fh, delimiter="\t"))
data = rows[1:]
print("total rows:", len(data))
print("status='no Status line':")
for r in data:
if r[3] == "no Status line":
print(" q", r[0], "|", r[2][:55])
print("state counts:", dict(__import__('collections').Counter(r[4] for r in data)))