From c11b5cfb29fd04fe053d4c0f3129666641f19d02 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 7 Jul 2021 08:18:02 -0400 Subject: [PATCH] Add user_uid to api output --- crc/models/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crc/models/file.py b/crc/models/file.py index 6379f22d..89646015 100644 --- a/crc/models/file.py +++ b/crc/models/file.py @@ -116,6 +116,7 @@ class File(object): instance.last_modified = data_model.date_created instance.latest_version = data_model.version instance.size = data_model.size + instance.user_uid = data_model.user_uid else: instance.last_modified = None instance.latest_version = None @@ -143,7 +144,7 @@ class FileSchema(Schema): fields = ["id", "name", "is_status", "is_reference", "content_type", "primary", "primary_process_id", "workflow_spec_id", "workflow_id", "irb_doc_code", "last_modified", "latest_version", "type", "size", "data_store", - "document"] + "document", "user_uid"] unknown = INCLUDE type = EnumField(FileType)