Skip to content

Commit

Permalink
Use list comprehension for pool enum
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Trllo <[email protected]>
  • Loading branch information
kalisp and iLLiCiTiT authored Nov 13, 2024
1 parent 9732866 commit 42148a9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ def apply_settings(cls, project_settings):
deadline_addon = addons_manager["deadline"]
deadline_server_name = settings["deadline_server"]
pools = deadline_addon.get_pools_by_server_name(deadline_server_name)
for pool in pools:
cls.pool_enum_values.append({"value": pool, "label": pool})
cls.pool_enum_values = [
{"value": pool, "label": pool}
for pool in pools
]

groups = deadline_addon.get_groups_by_server_name(deadline_server_name)
for group in groups:
Expand Down

0 comments on commit 42148a9

Please sign in to comment.