From a1d2bbd84208288533da68d4cd8c6bfd1ffd39d6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 18 Sep 2018 14:02:34 -0400 Subject: [PATCH] Fix _id to uid variable name in MembershipWorks private API --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index 13cc19d..3dc26c0 100644 --- a/common.py +++ b/common.py @@ -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