From 4a839b91d7f28eafd5352855bfb45306998c77b5 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 26 Aug 2021 13:35:01 -0400 Subject: [PATCH] Working on stuff related to session proposals. --- app/main.py | 1 + app/routers/event_session.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index e5f34f8..ddd7356 100644 --- a/app/main.py +++ b/app/main.py @@ -288,6 +288,7 @@ origins = [ 'http://demo.localhost:5000', 'http://localhost:7800', 'https://oneskyit.com', + 'https://dev.oneskyit.com', 'http://dev-idaa.home:5000', 'http://dev-idaa.localhost:5000', 'http://dev.home:5000', diff --git a/app/routers/event_session.py b/app/routers/event_session.py index 3e47cd4..4f45785 100644 --- a/app/routers/event_session.py +++ b/app/routers/event_session.py @@ -262,7 +262,7 @@ async def patch_event_session_obj( obj_data_dict = obj.dict(by_alias=False, exclude_unset=True) 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): log.debug('Need to convert to JSON string') obj_data_dict['proposal_json'] = json.dumps(obj_data_dict['proposal_json'])