Skip to content

Commit f848622

Browse files
committed
use repoEndpoint for Synapse URL
1 parent 8890e9d commit f848622

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

synapseclient/models/schema_organization.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
import re
77
from dataclasses import dataclass, field
8-
from typing import TYPE_CHECKING, Any, Optional, Protocol
8+
from typing import Any, Optional, Protocol
99

10+
from synapseclient import Synapse
1011
from synapseclient.api import (
1112
create_organization,
1213
delete_json_schema,
@@ -24,12 +25,7 @@
2425
from synapseclient.models.mixins.asynchronous_job import AsynchronousCommunicator
2526
from synapseclient.models.mixins.json_schema import JSONSchemaVersionInfo
2627

27-
if TYPE_CHECKING:
28-
from synapseclient import Synapse
29-
30-
SYNAPSE_SCHEMA_URL = (
31-
"https://repo-prod.prod.sagebase.org/repo/v1/schema/type/registered/"
32-
)
28+
SYNAPSE_SCHEMA_URL = f"{Synapse().repoEndpoint}/schema/type/registered/"
3329

3430

3531
class SchemaOrganizationProtocol(Protocol):

0 commit comments

Comments
 (0)