Skip to content

Commit 91e2389

Browse files
rhamel3drycwo
authored andcommitted
Add ability to update default project id
1 parent bbc0ac3 commit 91e2389

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

metafold/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def __init__(
3232
"Authorization": f"Bearer {access_token}",
3333
})
3434

35-
3635
def project_id(self, id: Optional[str] = None) -> str:
3736
id = id or self._default_project
3837
if not id:
@@ -41,6 +40,9 @@ def project_id(self, id: Optional[str] = None) -> str:
4140
)
4241
return id
4342

43+
def set_project_id(self, id: str) -> None:
44+
self._default_project = id
45+
4446
def _request(
4547
self, request: Callable[..., Response], url: str,
4648
*args: Any, **kwargs: Any,

0 commit comments

Comments
 (0)