We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02553f2 commit 70266d8Copy full SHA for 70266d8
arho_feature_template/core/models.py
@@ -80,14 +80,9 @@ def from_config_file(
80
description=feature_data.get("description"),
81
regulation_groups=[
82
group
83
- for group in [
84
- cls.find_matching_group_config(group_name, regulation_group_libraries)
85
- for group_name in feature_data.get("regulation_groups")
86
- ]
87
- if group
88
89
- if feature_data.get("regulation_groups")
90
- else [],
+ for group_name in feature_data.get("regulation_groups", [])
+ if (group := cls.find_matching_group_config(group_name, regulation_group_libraries))
+ ],
91
plan_id=None,
92
id_=None,
93
)
0 commit comments