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

@@ -0,0 +1,43 @@
Adam Erskine-Jones
Aidan Kuhlmann
Aila Taylor
Alex Faunce
Amelia Oliver
Anthony Day
Becka Lawson
Charlotte Payne
Christian Kuhlmann
Christopher Holt
Colin Foord
Dickon Morris
Ellie Davies
Fiona Zhang
Harry Kettle
Isaac Neale
Jacob Chuck
James McAllister
James Waite
Jono Lester
Julia Day
Lara Bartleet
Liam Tracy
Lucy Hyde
Marie Donovan
Mark Shinwell
Nat Dalton
Philip Balister
Philip Sargent
Rosa Brew
Sam Tittensor
Sarah Parker
Sieds Lykles
Todd Rye
Tom Phillips
Wookey
Wassil Janssen
Zac Woodford
\ldots\ldots\ldots
\ldots\ldots\ldots
\ldots\ldots\ldots
\ldots\ldots\ldots
\ldots\ldots\ldots

View File

@@ -0,0 +1,6 @@
30 Jun - 6 July
7 July - 13 July
14 July - 20 July
21 July - 27 July
28 July - 3 Aug

View File

@@ -440,5 +440,15 @@ in the online systems handbook at <a href="/handbook/computing/folkupdate.html">
<hr />
<details><summary>Click here to see 'names.txt' input data for <a href='/documents/bierbook/index.html'>bierbook generation</a>.</summary><pre>
Harry Kettle
Charlotte Payne
\ldots\ldots\ldots
\ldots\ldots\ldots
\ldots\ldots\ldots
\ldots\ldots\ldots
</pre></details>
</html>
</body>
</html>

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:
@@ -67,6 +68,8 @@ for r in lines[1:]:
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>""")