MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / fetch_addons

Method fetch_addons

api/organisations/chargebee/cache.py:43–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 return plans
42
43 def fetch_addons(self) -> dict: # type: ignore[type-arg]
44 addons = {}
45 for entry in get_item_generator(ChargebeeItem.ADDON):
46 addon = entry.addon
47 addon_metadata = addon.meta_data or {}
48 addons[addon.id] = ChargebeeObjMetadata(**addon_metadata)
49 return addons
50
51
52def get_item_generator(item: ChargebeeItem) -> Generator[Any, None, None]:

Callers 1

refreshMethod · 0.95

Calls 2

get_item_generatorFunction · 0.85

Tested by

no test coverage detected