Ignore Contractor member accounts on portal import

This commit is contained in:
Tanner Collin 2020-02-10 02:09:39 +00:00
parent f4af053c91
commit dd68adfe68

View File

@ -91,6 +91,12 @@ print('Using import date:', import_date)
for o in old: for o in old:
new = {} new = {}
if o.status == 'Contractor':
print('Skipping contractor member #{} - {} {}'.format(
o.id, o.first_name, o.last_name
))
continue
for f in MEMBER_FIELDS: for f in MEMBER_FIELDS:
new[f] = o.__dict__.get(f, None) new[f] = o.__dict__.get(f, None)