Bug fixes related to file uploads. Fixing id_random int vs str confusion. For account and for hosted_file.

This commit is contained in:
Scott Idem
2026-01-22 16:01:23 -05:00
parent 988775b9dd
commit 48d9e38c39
3 changed files with 48 additions and 28 deletions

View File

@@ -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