Skip to content

Commit 9c79122

Browse files
committed
waste less cpu cycles
1 parent 5f675eb commit 9c79122

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

flag_engine/context/mappers.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,11 @@ def _map_identity_overrides_to_segment_contexts(
119119
rules=[
120120
{
121121
"type": "ALL",
122-
"rules": [
122+
"conditions": [
123123
{
124-
"type": "ALL",
125-
"conditions": [
126-
{
127-
"property": "$.identity.identifier",
128-
"operator": "IN",
129-
"value": ",".join(identifiers),
130-
}
131-
],
124+
"property": "$.identity.identifier",
125+
"operator": "IN",
126+
"value": ",".join(identifiers),
132127
}
133128
],
134129
}
@@ -170,7 +165,8 @@ def _map_feature_states_to_feature_contexts(
170165
MultivariateFeatureStateValueModel
171166
]
172167
if (
173-
multivariate_feature_state_values := feature_state.multivariate_feature_state_values
168+
multivariate_feature_state_values
169+
:= feature_state.multivariate_feature_state_values
174170
):
175171
feature_ctx_data["variants"] = [
176172
{

0 commit comments

Comments
 (0)