mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use comprehention
This commit is contained in:
parent
79922d99b2
commit
dd637bb25d
1 changed files with 9 additions and 8 deletions
|
|
@ -563,14 +563,15 @@ def _create_workfile_info_entity(
|
|||
if value is not None:
|
||||
attrib[key] = value
|
||||
|
||||
data = {}
|
||||
for key, value in (
|
||||
("host_name", host_name),
|
||||
("version", version),
|
||||
("comment", comment),
|
||||
):
|
||||
if value is not None:
|
||||
data[key] = value
|
||||
data = {
|
||||
key: value
|
||||
for key, value in (
|
||||
("host_name", host_name),
|
||||
("version", version),
|
||||
("comment", comment),
|
||||
)
|
||||
if value is not None
|
||||
}
|
||||
|
||||
workfile_info = {
|
||||
"id": uuid.uuid4().hex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue