Import the Member.active flag from CORE API

This commit is contained in:
Lance Edgar 2023-06-06 11:45:35 -05:00
parent bfc52a6fb3
commit dde729b959

View file

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