Bug fixes related to file uploads. Fixing id_random int vs str confusion. For account and for hosted_file.
This commit is contained in:
@@ -512,8 +512,8 @@ async def upload_files(
|
||||
# Going to try and create a new host_file entry...
|
||||
log.warning('For some reason a host_file object entry with the has was not found.')
|
||||
# file_info['id_random'] = None
|
||||
file_info['account_id'] = account_id
|
||||
file_info['account_id_random'] = account_id_random
|
||||
file_info['account_id'] = account_id # This is the integer ID
|
||||
file_info['account_id_random'] = account_id_random # This is the string ID
|
||||
hosted_file_obj = Hosted_File_Base(**file_info)
|
||||
if hosted_file_obj_result := create_hosted_file_obj(hosted_file_obj_new=hosted_file_obj):
|
||||
hosted_file_id = hosted_file_obj_result
|
||||
|
||||
Reference in New Issue
Block a user