Work on event and lookup related end points, methods, and models
This commit is contained in:
@@ -53,7 +53,7 @@ async def patch_event_location_obj_exist_v4(
|
||||
fail_any = fail_any,
|
||||
return_outline = False,
|
||||
): pass
|
||||
else: return mk_resp(data=False, status_code=400, response=response, status_message='The event location was not created. Check the field names and data types.')
|
||||
else: return mk_resp(data=False, status_code=400, response=response, status_message='The event location was not created or updated. Check the field names and data types.')
|
||||
|
||||
if update_event_location_obj_result:
|
||||
if return_obj:
|
||||
@@ -125,13 +125,16 @@ async def get_event_location_obj(
|
||||
|
||||
|
||||
# ### BEGIN ### API Event Location ### get_event_obj_event_location_list() ###
|
||||
# Updated 2021-10-09
|
||||
# Updated 2021-11-10
|
||||
@router.get('/event/{event_id}/event/location/list', response_model=Resp_Body_Base)
|
||||
async def get_event_obj_event_location_list(
|
||||
event_id: str = Query(..., min_length=11, max_length=22),
|
||||
enabled: str = 'enabled',
|
||||
hidden: str = 'not_hidden',
|
||||
limit: int = 500,
|
||||
inc_event_file_list: bool = False,
|
||||
inc_event_session_list: bool = False,
|
||||
inc_file_count: bool = False,
|
||||
x_account_id: str = Header(...),
|
||||
by_alias: Optional[bool] = True,
|
||||
exclude_unset: Optional[bool] = True,
|
||||
@@ -143,9 +146,6 @@ async def get_event_obj_event_location_list(
|
||||
if event_id := redis_lookup_id_random(record_id_random=event_id, table_name='event'): pass
|
||||
else: return mk_resp(data=None, status_code=404, response=response)
|
||||
|
||||
response_data = None
|
||||
# log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
|
||||
# Updated 2021-07-28
|
||||
if event_location_rec_list_result := get_event_location_rec_list(
|
||||
event_id = event_id,
|
||||
@@ -162,6 +162,9 @@ async def get_event_obj_event_location_list(
|
||||
exclude_unset = exclude_unset,
|
||||
# model_as_dict = model_as_dict,
|
||||
enabled = enabled,
|
||||
inc_event_file_list = inc_event_file_list,
|
||||
inc_event_session_list = inc_event_session_list,
|
||||
inc_file_count = inc_file_count,
|
||||
):
|
||||
event_location_result_list.append(load_event_location_result)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user