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]