Skip to content

Commit 3e33c82

Browse files
committed
rename global_namespace to global_workspace, fix blunder
1 parent 086c544 commit 3e33c82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mergin/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def server_type(self):
346346
config = json.load(resp)
347347
if "user_workspaces_allowed" in config:
348348
self._server_type = ServerType.EE
349-
if "global_namespace" in config:
349+
if "global_workspace" in config:
350350
self._server_type = ServerType.CE
351351
except ClientError as e:
352352
self._server_type = ServerType.OLD
@@ -619,7 +619,7 @@ def enough_storage_available(self, data):
619619

620620
def user_info(self):
621621
server_type = self.server_type()
622-
if server_type == "old":
622+
if server_type == ServerType.OLD:
623623
resp = self.get("/v1/user/" + self.username())
624624
else:
625625
resp = self.get("/v1/user/profile")

0 commit comments

Comments
 (0)