From f95493e3a6c1dc79fd52403facae8faa43f443de Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 28 Mar 2020 20:37:57 -0400 Subject: [PATCH] doorUpdater: Add temporary check for access during Limited Operations --- doorUpdater.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doorUpdater.py b/doorUpdater.py index 17e3ce3..ad31ba7 100755 --- a/doorUpdater.py +++ b/doorUpdater.py @@ -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]