Skip to content

Commit a2a10d9

Browse files
update: Fix key mapping in ProjectConfig to use 'id' instead of empty string
1 parent b91f003 commit a2a10d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimizely/project_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, datafile: str | bytes, logger: Logger, error_handler: Any):
9898
for attribute in self.attributes:
9999
self.attribute_id_to_key_map[attribute['id']] = attribute['key']
100100
self.attribute_id_map: dict[str, entities.Attribute] = self._generate_key_map(
101-
self.attributes, '', entities.Attribute
101+
self.attributes, 'id', entities.Attribute
102102
)
103103
self.audience_id_map: dict[str, entities.Audience] = self._generate_key_map(
104104
self.audiences, 'id', entities.Audience

0 commit comments

Comments
 (0)