From ff08ea2000067bcf3e47b56b4e8de621af6bc2e3 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Tue, 26 May 2026 16:55:37 +0200 Subject: [PATCH] change formatting --- .../pre_copy_last_published_workfile.py | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/client/ayon_sitesync/launch_hooks/pre_copy_last_published_workfile.py b/client/ayon_sitesync/launch_hooks/pre_copy_last_published_workfile.py index cbbe0a2..97b6f3e 100644 --- a/client/ayon_sitesync/launch_hooks/pre_copy_last_published_workfile.py +++ b/client/ayon_sitesync/launch_hooks/pre_copy_last_published_workfile.py @@ -58,9 +58,8 @@ def execute(self): last_workfile = self.data.get("last_workfile_path") if os.path.exists(last_workfile): self.log.debug( - "Last workfile exists. Skipping {} process.".format( - self.__class__.__name__ - ) + "Last workfile exists." + f" Skipping {self.__class__.__name__} process." ) return @@ -99,25 +98,18 @@ def execute(self): task_type, project_settings=project_settings ) - - if use_last_published_workfile is None: + if use_last_published_workfile is False: self.log.info( - ( - "Seems like old version of settings is used." - ' Can\'t access custom templates in host "{}".'.format( - host_name - ) - ) + f'Project "{project_name}" has turned off to use last' + ' published workfile as first workfile for host' + f' "{host_name}"' ) return - elif use_last_published_workfile is False: + + if use_last_published_workfile is None: self.log.info( - ( - 'Project "{}" has turned off to use last published' - ' workfile as first workfile for host "{}"'.format( - project_name, host_name - ) - ) + "Seems like old version of settings is used." + f' Can\'t access custom templates in host "{host_name}".' ) return @@ -152,7 +144,7 @@ def execute(self): ) if not last_published_workfile_path: self.log.debug( - "Couldn't download {}".format(last_published_workfile_path) + f"Couldn't download {last_published_workfile_path}" ) return