From e598e8dc377e445f22c02e7d91cc183f97e310a9 Mon Sep 17 00:00:00 2001 From: Justin Simpson Date: Wed, 30 Sep 2015 09:48:31 -0700 Subject: [PATCH] change uuid used in determing file format the access file does not have file identification info in the database use the original file uuid instead. --- src/MCPClient/lib/clientScripts/upload-archivesspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MCPClient/lib/clientScripts/upload-archivesspace.py b/src/MCPClient/lib/clientScripts/upload-archivesspace.py index 99d2e02867..579c7aad65 100755 --- a/src/MCPClient/lib/clientScripts/upload-archivesspace.py +++ b/src/MCPClient/lib/clientScripts/upload-archivesspace.py @@ -134,7 +134,7 @@ def upload_to_archivesspace(files, client, xlink_show, xlink_actuate, object_typ # HACK remove DIP from the path because create DIP doesn't access_file_path = access_file.currentlocation.replace('%SIPDirectory%DIP/', dip_location) size = os.path.getsize(access_file_path) - fv = FormatVersion.objects.get(fileformatversion__file_uuid=access_file.uuid) + fv = FormatVersion.objects.get(fileformatversion__file_uuid=uuid) format_version = fv.description format_name = fv.format.description