forked from CMS/memberPlumbing
doorUpdater: Sort MembershipWorks CSV by last name
so that output CSVs might be more consistent
This commit is contained in:
parent
8b598fd8b9
commit
cbc049ce68
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user