Also check for "Membership on hold" membership level, not just label

This commit is contained in:
Adam Goldsmith 2021-07-01 12:39:10 -04:00
parent f94a27699c
commit 995b6f9763

View File

@ -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}