We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4ca0a1 commit fa20262Copy full SHA for fa20262
1 file changed
gremlinapi/gremlinapi.py
@@ -6,6 +6,8 @@
6
import logging
7
import time
8
9
+from gremlinapi.config import GremlinAPIConfig as config
10
+
11
from gremlinapi.exceptions import (
12
APIError,
13
GremlinParameterError,
@@ -27,6 +29,8 @@ def __init__(self):
27
29
@classmethod
28
30
def _optional_team_endpoint(cls, endpoint, **kwargs):
31
team_id = cls._warn_if_not_param('teamId', **kwargs)
32
+ if not team_id and 'str' in type(config.team_guid):
33
+ team_id = config.team_guid
34
if team_id:
35
if '/?' in endpoint and not str(endpoint).endswith('?'):
36
endpoint += f'&teamId={team_id}'
0 commit comments