More robust and clean up

This commit is contained in:
Scott Idem
2021-06-14 16:23:30 -04:00
parent 7080b51dfc
commit 8f51ed1158

View File

@@ -49,8 +49,6 @@ async def upload_files(
else: else:
return mk_resp(data=None, status_code=400) return mk_resp(data=None, status_code=400)
# file_info_li = await save_file_li(file_list, for_object_type, for_object_id, for_object_id_random)
file_info_list = [] file_info_list = []
for file_obj in file_list: for file_obj in file_list:
file_info = await save_file(file=file_obj, account_id=account_id, account_id_random=account_id_random, for_object_type=for_object_type, for_object_id=for_object_id, for_object_id_random=for_object_id_random, check_allowed_extension=check_allowed_extension) file_info = await save_file(file=file_obj, account_id=account_id, account_id_random=account_id_random, for_object_type=for_object_type, for_object_id=for_object_id, for_object_id_random=for_object_id_random, check_allowed_extension=check_allowed_extension)