Work on fancy API CRUD

This commit is contained in:
Scott Idem
2023-05-02 17:41:43 -04:00
parent e7a26268ce
commit c9cc587c61

View File

@@ -419,8 +419,8 @@ async def patch_obj(
log.warning('We should not be here')
return mk_resp(data=False, status_code=400, response=commons.response)
table_name = obj_type_li[obj_name]['tbl_name_update']
exclude = obj_type_li[obj_name]['exclude_for_db']
table_name = obj_type_li[obj_name].get('tbl_name_update')
exclude = obj_type_li[obj_name].get('exclude_for_db')
# ### SECTION ### Secondary data validation
# obj_id_random = obj_id # This might need to be used later for the response data