From 1cb8ca2d52bd615c608c1e4060503aeacc6b080f Mon Sep 17 00:00:00 2001 From: Wookey Date: Wed, 20 Apr 2016 04:19:10 +0100 Subject: [PATCH] Fix more off-by-ones chopping off names and update records section --- noinfo/make-folklist.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/noinfo/make-folklist.py b/noinfo/make-folklist.py index a1d4cd72d..eed994074 100755 --- a/noinfo/make-folklist.py +++ b/noinfo/make-folklist.py @@ -48,10 +48,16 @@ for r in lines[1:]: output += '' + m + '' else: output += '' + # print number of expos, non-caving in red. Only print numbers > 0 + output += '' if(expos_notcaving): - output += '%d + %d\n' % (expos_caving, expos_notcaving) + if(expos_caving): + output += '%d + %d' % (expos_caving, expos_notcaving) + else: + output += '%d' % expos_notcaving else: - output += '%d\n' % expos_caving + output += '%d' % expos_caving + output += '\n' recordholders.append((expos_caving, name)) def collapse(m): @@ -138,15 +144,17 @@ recordholders.reverse() k = 2 while recordholders[k + 1][0] == recordholders[k][0]: k = k + 1 -print "%s (%d expos)," % (recordholders[0][1][1:-1],recordholders[0][0]) +print "%s (%d expos)," % (recordholders[0][1],recordholders[0][0]) for r in recordholders[1:k]: - print "%s (%d)," % (r[1][1:-1],r[0]), + print "%s (%d)," % (r[1],r[0]), print """and %s (%d). Mark Shinwell holds the record for consecutive expo attendance (10), but didn't actually go caving on all those, so this record arguably falls to Julian Haines and Brian Outram (9 each). -A more obscure record was set by Juliet Morse in 2010: longest -interval between expos (14 years).""" % (recordholders[k][1][1:-1],recordholders[k][0]) +A more obscure record was set by Wadders in 2015: longest interval +between expos (17 years), except that he didn't actually go underground, +so it may be shared by Mark Dougherty, Juliet Morse and Chris Densham, +who have all returned after gaps of 13 years

""" % (recordholders[k][1],recordholders[k][0]) print """

Outside-expo caving has started, with Becka Lawson, Neil Pacey, Julian Todd and Wookey