From a79693601928390651cfb9cecb60b0e7f3ba638a Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 30 Sep 2024 15:58:21 +0200 Subject: [PATCH] The code now correctly uses 'elif' instead of 'if' to handle '%' in basenames. --- client/ayon_traypublisher/plugins/create/create_csv_ingest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_traypublisher/plugins/create/create_csv_ingest.py b/client/ayon_traypublisher/plugins/create/create_csv_ingest.py index 05ce0f8..d1685a4 100644 --- a/client/ayon_traypublisher/plugins/create/create_csv_ingest.py +++ b/client/ayon_traypublisher/plugins/create/create_csv_ingest.py @@ -651,7 +651,7 @@ def _add_representation( basename = basename.replace("#" * padding, seq_padding) file_head = basename.split(seq_padding)[0] is_sequence = True - if "%" in basename: + elif "%" in basename: pattern = re.compile(r"%\d+d|%d") padding = pattern.findall(basename) if not padding: