update download method
This commit is contained in:
parent
54c2535b95
commit
09a1e332a5
1 changed files with 2 additions and 1 deletions
|
|
@ -99,7 +99,8 @@ class StoreService(Service):
|
|||
|
||||
def download(self, api_key: str, id: str) -> ComponentResponse:
|
||||
url = f"{self.components_url}/{id}"
|
||||
component = self._get(url, api_key)
|
||||
params = {"fields": ",".join(["id", "name", "description", "data"])}
|
||||
component = self._get(url, api_key, params)[0]
|
||||
return ComponentResponse(**component)
|
||||
|
||||
def upload(self, api_key: str, component_data: Dict[str, Any]) -> ComponentResponse:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue