From dde729b959a011b2618ce3db80515232962f3c5e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 6 Jun 2023 11:45:35 -0500 Subject: [PATCH] Import the `Member.active` flag from CORE API --- rattail_corepos/importing/corepos/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rattail_corepos/importing/corepos/api.py b/rattail_corepos/importing/corepos/api.py index 3e3fadd..1735ddd 100644 --- a/rattail_corepos/importing/corepos/api.py +++ b/rattail_corepos/importing/corepos/api.py @@ -851,6 +851,7 @@ class MemberImporter(FromCOREPOSAPI, corepos_importing.model.MemberImporter): 'person_uuid', 'joined', 'withdrew', + 'active', ] # TODO: should make this configurable @@ -932,4 +933,5 @@ class MemberImporter(FromCOREPOSAPI, corepos_importing.model.MemberImporter): 'person_uuid': person.uuid, 'joined': joined, 'withdrew': withdrew, + 'active': not bool(withdrew), }