premit zero attendance expoer to prevent crashes

This commit is contained in:
Philip Sargent 2024-10-30 18:40:34 +02:00 committed by Expo on server
parent 3473a6fba3
commit eff0d61f54
2 changed files with 3 additions and 3 deletions

View File

@ -387,7 +387,7 @@ Aiora Zabala,Zabala,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1,,,,,,,,,,,,,
Sarah Livia Zerbes,Zerbes,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-1,-1,,,,,,,,,,,,
Aidan Kuhlmann,Kuhlmann,,,i/2024/aidan.jpg,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1
Aila Taylor,Taylor,,,i/2024/aila.jpg,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1
Alex Faunce,Faunce,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1
Alex Faunce,Faunce,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Colin Foord,Foord,,,i/2024/colin.jpg,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1
Ellie Davies,Davies,,,i/2024/ellie.jpg,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1
Fiona Zhang,Zhang,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1

1 Name Lastname Guest VfHO member Mugshot 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024
387 Sarah Livia Zerbes Zerbes 1 -1 -1
388 Aidan Kuhlmann Kuhlmann i/2024/aidan.jpg 1
389 Aila Taylor Taylor i/2024/aila.jpg 1
390 Alex Faunce Faunce 1
391 Colin Foord Foord i/2024/colin.jpg 1
392 Ellie Davies Davies i/2024/ellie.jpg 1
393 Fiona Zhang Zhang 1

View File

@ -64,8 +64,8 @@ for r in lines[1:]:
expos_caving = len([t for t in years if t == "1"])
expos_notcaving = len([t for t in years if t == "-1"])
if(expos_caving == 0 and expos_notcaving == 0):
sys.stderr.write("Error processing " + name + ". No attendances found\n")
sys.exit(1)
sys.stderr.write("Warning: processing " + name + ". No attendances found\n")
# sys.exit(1)
if(expos_caving and name != 'Rover Richardson' and name != 'Bier Tent'): headcount += 1
if mug: pics +=1
output += '<tr><td>'