Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 5fac100

Browse files
authored
[bandit] API returns bandits in a {} instead of a [] (#48)
1 parent 3ea7cf5 commit 5fac100

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eppo_client/configuration_requestor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def store_flags(self, flag_data) -> Dict[str, Flag]:
5353

5454
def store_bandits(self, bandit_data) -> Dict[str, BanditData]:
5555
bandit_configs = {
56-
config["banditKey"]: BanditData(**config)
57-
for config in cast(dict, bandit_data.get("bandits", []))
56+
key: BanditData(**data)
57+
for key, data in cast(dict, bandit_data.get("bandits", {})).items()
5858
}
5959
self.__bandit_config_store.set_configurations(bandit_configs)
6060
return bandit_configs

eppo_client/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.1.1"
1+
__version__ = "3.1.2"

0 commit comments

Comments
 (0)