From c9d1c4a6b6c4bd9bb013073a0cea14272a0c58a7 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 13 Nov 2024 14:12:39 +0100 Subject: [PATCH] Use list comprehension for machines enum Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- .../plugins/publish/global/collect_jobinfo.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py b/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py index 3aaaf15cd8..ccf564bddf 100644 --- a/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py +++ b/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py @@ -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):