doorUpdater: Sort MembershipWorks CSV by last name

so that output CSVs might be more consistent
This commit is contained in:
Adam Goldsmith 2018-06-10 23:58:05 -04:00
parent 8b598fd8b9
commit cbc049ce68

View File

@ -113,6 +113,7 @@ def main():
data = getMembershipworksData()
reader = csv.DictReader(StringIO(data))
members = list(reader)
members.sort(key=lambda x: x['Last Name'])
if os.path.exists('/tmp/doorUpdaterLastHash'):
with open('/tmp/doorUpdaterLastHash', 'r') as f: