Adding cfg_json and data_json fields to more models

This commit is contained in:
Scott Idem
2024-06-11 13:35:00 -04:00
parent 6691f2a701
commit 19082a7a10
7 changed files with 27 additions and 4 deletions

View File

@@ -948,6 +948,7 @@ async def pre_program_data_import(
'professional_title': str, 'Professional Title': str,
'affiliations': str, 'Affiliations': str, 'Company': str,
'affiliation': str, 'Affiliation': str,
'passcode': str, 'Passcode': str,
'notes': str, 'Notes': str,
'data_json': str,
}
@@ -972,6 +973,7 @@ async def pre_program_data_import(
'Affiliation': 'affiliations',
'affiliation': 'affiliations',
'Company': 'affiliations',
'Passcode': 'passcode',
'Notes': 'notes',
},
inplace = True)
@@ -1030,6 +1032,8 @@ def process_person_data(account_id, source_code, record):
data['primary_email'] = record.get('email', None)
data['passcode'] = record.get('passcode', None)
data['notes'] = record.get('notes', None)
data['data_json'] = record.get('data_json', None)