Work on abstracts.

This commit is contained in:
Scott Idem
2023-05-05 17:29:02 -04:00
parent 2698f06c57
commit 916cca1d73
4 changed files with 30 additions and 18 deletions

View File

@@ -29,7 +29,7 @@ async def post_event_abstract_obj(
# create_sub_obj: bool = False,
# fail_any: bool = True, # Fail if any thing goes wrong for sub objects
return_obj: bool = True,
return_obj: bool = False,
inc_event_file_list: bool = False,
inc_event_person: bool = False,
inc_event_presentation_list: bool = False,
@@ -49,8 +49,8 @@ async def post_event_abstract_obj(
# There should probably be a check for the event ID before calling the create function?
if create_event_abstract_obj_result := create_update_event_abstract_obj(
event_abstract_obj = event_abstract_obj,
event_id = event_abstract_obj.event_id,
event_person_id = event_abstract_obj.event_person_id,
event_id = event_id, # event_abstract_obj.event_id,
event_person_id = event_person_id, # event_abstract_obj.event_person_id,
# create_sub_obj = create_sub_obj,
# fail_any = fail_any,
return_outline = False,
@@ -193,7 +193,7 @@ async def get_event_abstract_obj(
# ### END ### API Event Abstract ### get_event_abstract_obj() ###
# ### BEGIN ### API Event Exhibit Tracking ### delete_event_abstract_obj() ###
# ### BEGIN ### API Event Abstract ### delete_event_abstract_obj() ###
# Updated 2023-03-22
@router.delete('/event/abstract/{event_abstract_id}', response_model=Resp_Body_Base)
def delete_event_abstract_obj(
@@ -222,4 +222,4 @@ def delete_event_abstract_obj(
else:
log.warning('Likely bad request')
return mk_resp(data=False, status_code=400, response=response) # Bad Request
# ### END ### API Event Exhibit Tracking ### delete_event_abstract_obj() ###
# ### END ### API Event Abstract ### delete_event_abstract_obj() ###

View File

@@ -38,14 +38,14 @@ async def v4_post_event_person_obj_new(
inc_user: bool = False,
x_account_id: str = Header(...),
return_obj: bool = True,
return_obj: bool = False, # Should this default to False??? -2023-05-05
limit: int = 500,
enabled: str = 'enabled',
by_alias: bool = True,
exclude_unset: bool = True,
response: Response = Response,
):
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
# There should probably be a check for the event ID before calling the create function?