Working on stuff related to session proposals.

This commit is contained in:
Scott Idem
2021-08-26 13:35:01 -04:00
parent 112f6d4da4
commit 4a839b91d7
2 changed files with 2 additions and 1 deletions

View File

@@ -288,6 +288,7 @@ origins = [
'http://demo.localhost:5000', 'http://demo.localhost:5000',
'http://localhost:7800', 'http://localhost:7800',
'https://oneskyit.com', 'https://oneskyit.com',
'https://dev.oneskyit.com',
'http://dev-idaa.home:5000', 'http://dev-idaa.home:5000',
'http://dev-idaa.localhost:5000', 'http://dev-idaa.localhost:5000',
'http://dev.home:5000', 'http://dev.home:5000',

View File

@@ -262,7 +262,7 @@ async def patch_event_session_obj(
obj_data_dict = obj.dict(by_alias=False, exclude_unset=True) obj_data_dict = obj.dict(by_alias=False, exclude_unset=True)
log.debug(obj_data_dict) log.debug(obj_data_dict)
log.debug(type(obj_data_dict['proposal_json'])) log.debug(type(obj_data_dict.get('proposal_json', None)))
if 'proposal_json' in obj_data_dict and isinstance(obj_data_dict['proposal_json'], dict): if 'proposal_json' in obj_data_dict and isinstance(obj_data_dict['proposal_json'], dict):
log.debug('Need to convert to JSON string') log.debug('Need to convert to JSON string')
obj_data_dict['proposal_json'] = json.dumps(obj_data_dict['proposal_json']) obj_data_dict['proposal_json'] = json.dumps(obj_data_dict['proposal_json'])