From 7f2dde44e99c52d4b26cc12d587f0f9d11721214 Mon Sep 17 00:00:00 2001 From: hugo Date: Tue, 8 Oct 2024 15:00:03 -0700 Subject: [PATCH] linting --- saturn_client/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/saturn_client/core.py b/saturn_client/core.py index a8f4d77..ed057b1 100644 --- a/saturn_client/core.py +++ b/saturn_client/core.py @@ -363,6 +363,11 @@ def delete_shared_folder(self, shared_folder_id: str) -> Dict: response = self.session.delete(url) return response.json() + def set_preferred_org(self, user_id: str, org_id: str) -> Dict: + url = urljoin(self.url, "api/user/preferences") + response = self.session.post(url, json={"user_id": user_id, "default_org_id": org_id}) + return response.json() + def get_size(self, size: str) -> Dict: sizes = self.list_options(ServerOptionTypes.SIZES) pruned = [x for x in sizes if x["name"] == size]