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": "",