Skip to content

Commit

Permalink
Use list comprehension for machines 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 42148a9 commit c9d1c4a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/ayon_deadline/plugins/publish/global/collect_jobinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ def apply_settings(cls, project_settings):
cls.limit_group_enum_values.append(
{"value": limit_group, "label": limit_group})

machines = (
deadline_addon.get_machines_by_server_name(deadline_server_name))
for machine in machines:
cls.machines_enum_values.append(
{"value": machine, "label": machine})
machines = deadline_addon.get_machines_by_server_name(
deadline_server_name
)
cls.machines_enum_values = [
{"value": machine, "label": machine}
for machine in machines
]

@classmethod
def get_attr_defs_for_instance(cls, create_context, instance):
Expand Down

0 comments on commit c9d1c4a

Please sign in to comment.