mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
iterate over extensions fix
This commit is contained in:
parent
63911161dd
commit
c8a7e355b4
1 changed files with 2 additions and 2 deletions
|
|
@ -465,8 +465,8 @@ def get_last_workfile(
|
|||
product_type="workfile"
|
||||
)
|
||||
data.pop("comment", None)
|
||||
if not data.get("ext"):
|
||||
data["ext"] = extensions[0]
|
||||
if data.get("ext") is None:
|
||||
data["ext"] = next(iter(extensions), "")
|
||||
data["ext"] = data["ext"].lstrip(".")
|
||||
filename = StringTemplate.format_strict_template(file_template, data)
|
||||
filepath = os.path.join(workdir, filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue