From c222a2198f439bfc82320eead2bdf2e105f61ced Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 8 May 2018 20:35:33 -0400 Subject: [PATCH] Use "Access Card Facility Code" field --- doorUpdater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doorUpdater.py b/doorUpdater.py index 50a2bd8..b3e42ca 100644 --- a/doorUpdater.py +++ b/doorUpdater.py @@ -62,7 +62,7 @@ def getMembershipworksData(): data={"_rt": "946702800", # unknown "mux": "", # unknown "tid": ",".join(ids), # ids of members to get - "var": "lvl,xws,xms,xsc,xrs,xfd,xac,phn,eml,lbl,nam"}) # which columns to get + "var": "lvl,xws,xms,xsc,xrs,xfd,xac,phn,eml,lbl,xcf,nam"}) # which columns to get if r.status_code != 200: print("MembershipWorks CSV Generation Error: ", r.status_code, r.reason) print(r.text) @@ -80,7 +80,7 @@ def makeMember(member, doorAuth): "Surname": member["Last Name"], "Initial": "", "CardNumber": member["Access Card Number"], - "CardFormat": "A901146A-241", + "CardFormat": "A901146A-" + member["Access Card Facility Code"], "PinRequired": "0", "ExtendedAccess": "0", "ExpiryDate": "",