doorUpdater: Add temporary check for access during Limited Operations

This commit is contained in:
Adam Goldsmith 2020-03-28 20:37:57 -04:00
parent 641b9a2779
commit f95493e3a6

View File

@ -66,6 +66,8 @@ class MembershipworksMember(Member):
self.doorAccess = [
door for door, doorData in doors.items()
if data["Access " + doorData.access + "?"] == "Y"
and data['Access Permitted During Limited Operations'] == "Y"
]
def to_DoorMember(self, door):
@ -230,7 +232,7 @@ def update_door(door, members):
def main():
memberData = membershipworks.get_members(
['members', 'staff', 'misc'],
"_id,nam,phn,eml,lvl,lbl,xws,xms,xsc,xas,xfd,xac,xcf,xeh,xse")
"_id,nam,phn,eml,lvl,lbl,xws,xms,xsc,xas,xfd,xac,xcf,xeh,xse,xlo")
members = [MembershipworksMember(m) for m in memberData]