Work on event importing and related

This commit is contained in:
Scott Idem
2021-10-19 21:21:11 -04:00
parent f5f09f0516
commit 53c6c6b51c
8 changed files with 345 additions and 7 deletions

View File

@@ -208,7 +208,7 @@ async def get_event_obj_li(
# Working well as of 2021-06-30. Using as a template for other routes.
@router.get('/event/{event_id}', response_model=Resp_Body_Base)
async def get_event_obj(
event_id: str = Query(..., min_length=1, max_length=22),
event_id: str = Query(..., min_length=11, max_length=22),
enabled: str = 'enabled', # enabled, disabled, all
approved: str = 'all', # approve(d), not_approved, all
hidden: str = 'not_hidden', # hidden, not_hidden, all
@@ -270,7 +270,7 @@ async def get_event_obj(
# inc_event_device_list = inc_event_device_list,
# inc_event_exhibit_list = inc_event_exhibit_list,
inc_event_file_list = inc_event_file_list,
# inc_event_location = inc_event_location,
inc_event_location = inc_event_location,
inc_event_location_list = inc_event_location_list,
# inc_event_person = inc_event_person,
inc_event_person_list = inc_event_person_list,
@@ -322,7 +322,7 @@ async def get_account_obj_event_list(
# inc_event_device_list: bool = False,
# inc_event_exhibit_list: bool = False,
inc_event_file_list: bool = False,
# inc_event_location: bool = False,
inc_event_location: bool = False, # Currently only specific to an event_session
inc_event_location_list: bool = False,
# inc_event_person: bool = False,
inc_event_person_list: bool = False,
@@ -380,7 +380,7 @@ async def get_account_obj_event_list(
# inc_event_device_list = inc_event_device_list,
# inc_event_exhibit_list = inc_event_exhibit_list,
inc_event_file_list = inc_event_file_list,
# inc_event_location = inc_event_location,
inc_event_location = inc_event_location,
inc_event_location_list = inc_event_location_list,
# inc_event_person = inc_event_person,
inc_event_person_list = inc_event_person_list,