From 660a6f8ee111e76bc55214a06da592559747cdb8 Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Mon, 18 May 2026 16:24:36 +0800 Subject: [PATCH] implement the check on single frame in the representation files and if yes, we need to convert it to string type --- client/ayon_core/plugins/publish/integrate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/ayon_core/plugins/publish/integrate.py b/client/ayon_core/plugins/publish/integrate.py index c062e943048..4b0c7272584 100644 --- a/client/ayon_core/plugins/publish/integrate.py +++ b/client/ayon_core/plugins/publish/integrate.py @@ -573,6 +573,10 @@ def prepare_representation( # required representation keys files = repre["files"] + # a single frame should be str in representation[files] + if isinstance(files, (list, tuple)) and len(files) == 1: + files: str = files[0] + template_data["representation"] = repre["name"] template_data["ext"] = repre["ext"]