mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Apply suggestions from code review
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
ebdd47a47a
commit
39f009ed7c
1 changed files with 2 additions and 4 deletions
|
|
@ -1344,8 +1344,8 @@ def _prepare_last_workfile(data, workdir, workfile_template_key):
|
|||
)
|
||||
|
||||
# Last workfile path
|
||||
last_workfile_path = ""
|
||||
if not data.get("last_workfile_path"): # to inject explicitly
|
||||
last_workfile_path = data.get("last_workfile_path") or ""
|
||||
if not last_workfile_path:
|
||||
extensions = avalon.api.HOST_WORKFILE_EXTENSIONS.get(app.host_name)
|
||||
|
||||
if extensions:
|
||||
|
|
@ -1361,8 +1361,6 @@ def _prepare_last_workfile(data, workdir, workfile_template_key):
|
|||
last_workfile_path = avalon.api.last_workfile(
|
||||
workdir, file_template, workdir_data, extensions, True
|
||||
)
|
||||
else:
|
||||
last_workfile_path = data.get("last_workfile_path")
|
||||
|
||||
if os.path.exists(last_workfile_path):
|
||||
log.debug((
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue