Bug fix for old directory_path that is no longer used.
This commit is contained in:
@@ -670,7 +670,7 @@ def handle_delete_hosted_file(
|
||||
# hosted_files_path = '/home/scott/tmp/hosted_files_dev/'
|
||||
log.info(f'Hosted Files Path: {hosted_files_path}')
|
||||
|
||||
dir_path = hosted_file_obj.directory_path
|
||||
# dir_path = hosted_file_obj.directory_path
|
||||
subdir_path = hosted_file_obj.subdirectory_path
|
||||
hash_sha256 = hosted_file_obj.hash_sha256
|
||||
hash_filename = hash_sha256+'.file'
|
||||
|
||||
@@ -269,7 +269,7 @@ async def download_event_file(
|
||||
if not filename:
|
||||
filename = event_file_obj.filename
|
||||
log.info(f'Filename: {filename}')
|
||||
dir_path = event_file_obj.hosted_file.directory_path
|
||||
# dir_path = event_file_obj.hosted_file.directory_path
|
||||
subdir_path = event_file_obj.hosted_file.subdirectory_path
|
||||
hash_sha256 = event_file_obj.hosted_file.hash_sha256
|
||||
if not hash_sha256:
|
||||
|
||||
@@ -192,7 +192,7 @@ async def download_hosted_file(
|
||||
if not filename:
|
||||
filename = hosted_file_obj.filename
|
||||
log.info(f'Filename: {filename}')
|
||||
dir_path = hosted_file_obj.directory_path
|
||||
# dir_path = hosted_file_obj.directory_path
|
||||
subdir_path = hosted_file_obj.subdirectory_path
|
||||
hash_sha256 = hosted_file_obj.hash_sha256
|
||||
hash_filename = hash_sha256+'.file'
|
||||
@@ -281,7 +281,7 @@ async def stream_hosted_file(
|
||||
if not filename:
|
||||
filename = hosted_file_obj.filename
|
||||
log.info(f'Filename: {filename}')
|
||||
dir_path = hosted_file_obj.directory_path
|
||||
# dir_path = hosted_file_obj.directory_path
|
||||
subdir_path = hosted_file_obj.subdirectory_path
|
||||
hash_sha256 = hosted_file_obj.hash_sha256
|
||||
hash_filename = hash_sha256+'.file'
|
||||
|
||||
Reference in New Issue
Block a user