SUPPORTERS: update suporters list

From now one we simply list everyone that support the project.
This commit is contained in:
Juan Pablo Ugarte 2021-11-27 14:55:36 -05:00
parent 8298ca6d89
commit 19b847ce27
2 changed files with 17 additions and 26 deletions

View File

@ -1,17 +1,13 @@
# Cambalache supporters
Many thanks to all the sponsors and supporters of the project
Many thanks to all the people that suppport the project
- Coleman
- Willo Vincent
- Platon workaccount
- Sonny Piers
- David
- Felipe Borges
- Javier Jardón
- Aemilia Scott
- Patrick
# Former supporters
- Patrick Griffis
- Patrick Griffis
- Willo Vincent
- Javier Jardón
- Sonny Piers
- Platon workaccount
- Felipe Borges
- David
- Aemilia Scott
- Patrick

View File

@ -27,28 +27,24 @@ import csv
header_text = '''# Cambalache supporters
Many thanks to all the sponsors and advocates of the project
Many thanks to all the people that suppport the project
'''
def get_supporters(filename):
retval = {
'supporter': [],
'advocate': [],
'sponsor': []
}
retval = []
with open(filename, newline='') as f:
reader = csv.DictReader(f)
for row in reader:
name = row['Name']
tier = row['Tier'].lower()
status = row['Last Charge Status'].lower()
lifetime = float(row['Lifetime Amount'])
if status == 'paid' and tier in retval:
retval[tier].append(name)
if lifetime > 0:
retval.append((name, lifetime))
return retval
return [x[0] for x in sorted(retval, key=lambda v: v[1], reverse=True)]
def save_supporters(fd, supporters, prefix):
@ -65,6 +61,5 @@ if __name__ == "__main__":
with open(sys.argv[2], 'w') as fd:
fd.write(header_text)
save_supporters(fd, supporters['sponsor'], '*')
save_supporters(fd, supporters['advocate'], '-')
save_supporters(fd, supporters, ' - ')
fd.close()