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

17 lines
550 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:]
from collections import Counter
c = Counter(r[4] for r in data)
print("state counts:", c)
print("unclassified rows:")
for r in data:
if r[4] == "unclassified":
print(" q", r[0], "|", r[2][:60], "|", repr(r[3][:100]))
print("status='' rows:")
for r in data:
if r[3] == "":
print(" q", r[0], "|", r[2][:60])