18 lines
482 B
Python
18 lines
482 B
Python
import re
|
|
SRC = "/root/troupe-standup/WORK-QUEUE.md"
|
|
text = open(SRC, encoding="utf-8").read().splitlines()
|
|
Q = re.compile(r"^## Q(\d+)\s?(.*)$")
|
|
other = []
|
|
qcount = 0
|
|
for i, raw in enumerate(text):
|
|
line = raw.rstrip()
|
|
if line.startswith("## "):
|
|
if Q.match(line):
|
|
qcount += 1
|
|
else:
|
|
other.append((i, line))
|
|
print("Q headings:", qcount)
|
|
print("non-Q '## ' headings:", len(other))
|
|
for i, line in other:
|
|
print(f" {i}: {line[:110]}")
|