Use "Access Card Facility Code" field
This commit is contained in:
parent
e443380153
commit
c222a2198f
@ -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": "",
|
||||
|
Reference in New Issue
Block a user