From 995b6f9763f3c552059fd23bfe59da8ecd41f6f0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 1 Jul 2021 12:39:10 -0400 Subject: [PATCH] Also check for "Membership on hold" membership level, not just label --- memberPlumbing/doorUpdater.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memberPlumbing/doorUpdater.py b/memberPlumbing/doorUpdater.py index cbbd8e4..b0c1882 100755 --- a/memberPlumbing/doorUpdater.py +++ b/memberPlumbing/doorUpdater.py @@ -72,7 +72,10 @@ class MembershipworksMember(Member): else: self.credentials = set() - self.onHold = data["Account on Hold"] != "" + self.onHold = ( + data["Account on Hold"] != "" + or data["CMS Membership on hold"] == "CMS Membership on hold" + ) self.formerMember = formerMember levels = {k: v for k, v in config.memberLevels.items() if data[k] == k}