Fix _id to uid variable name in MembershipWorks private API

This commit is contained in:
Adam Goldsmith 2018-09-18 14:02:34 -04:00
parent 852e8a51e8
commit a1d2bbd842

View File

@ -52,7 +52,7 @@ def getMembershipworksData(folders, columns):
print("MembershipWorks User Listing Error: ", r.status_code, r.reason)
print(r.text)
sys.exit(1)
ids = [user['_id'] for user in r.json()['usr']]
ids = [user['uid'] for user in r.json()['usr']]
# get members CSV
# TODO: maybe can just use previous get instead? would return JSON