generate bierbook in folklist

This commit is contained in:
2025-02-09 19:11:03 +00:00
parent ee153635a4
commit b106ee476b
5 changed files with 75 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ def troggle_slugify(longname):
# sys.stderr.write(f"{t}-{s} '{longname}' {slug}\n")
return slug
bierbook = {}
for r in lines[1:]:
n +=1
try:
@@ -66,7 +67,9 @@ for r in lines[1:]:
if(expos_caving == 0 and expos_notcaving == 0):
sys.stderr.write("Warning: processing " + name + ". No attendances found\n")
# sys.exit(1)
if years[-1] == "1" or years[-1] == "-1":
bierbook[name] = True
if(expos_caving and name != 'Rover Richardson' and name != 'Bier Tent'): headcount += 1
if mug: pics +=1
output += '<tr><td>'
@@ -123,6 +126,8 @@ for r in lines[1:]:
output += '</td></tr>\n'
recordholders.append((expos_caving, name))
def collapse(m):
n = (m.span()[1]-m.span()[0]) / 9
if(n == 1): return m.group()
@@ -243,6 +248,15 @@ remain open all winter.</p>
in the online systems handbook at <a href="/handbook/computing/folkupdate.html">new year, new folklist</a>.</p>
<hr />
""")
print("<details><summary>Click here to see 'names.txt' input data for <a href='/documents/bierbook/index.html'>bierbook generation</a>.</summary><pre>")
for name in bierbook:
print(name)
for i in range(4):
print(r"\ldots\ldots\ldots")
print("""</pre></details>
</html>
</body>
</html>""")
</html>""")