From 783d52002193c9edbe8df1f13b0cd48661383f03 Mon Sep 17 00:00:00 2001 From: "matija.tomazic" Date: Tue, 17 Oct 2023 12:09:13 +0200 Subject: [PATCH] ID should be included in hook data. --- python/tk_multi_workfiles/actions/custom_file_action.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/tk_multi_workfiles/actions/custom_file_action.py b/python/tk_multi_workfiles/actions/custom_file_action.py index 1828b815..b61dfc0e 100644 --- a/python/tk_multi_workfiles/actions/custom_file_action.py +++ b/python/tk_multi_workfiles/actions/custom_file_action.py @@ -31,6 +31,7 @@ def _prepare_file_data_for_hook(file_versions): work_file["modified_at"] = file.modified_at work_file["modified_by"] = file.modified_by work_file["read_only"] = not file.editable + work_file["sg_id"] = file.published_file_id work_file["type"] = "work" work_file_versions.append(work_file) if file.is_published: @@ -40,6 +41,7 @@ def _prepare_file_data_for_hook(file_versions): publish["version"] = file.version publish["published_at"] = file.published_at publish["published_by"] = file.published_by + publish["sg_id"] = file.published_file_id publish["type"] = "publish" publish_versions.append(publish)