Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed May 18, 2024
1 parent 2a47915 commit e8ba55c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agentops/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def __init__(self,
self._tags: Optional[List[str]] = tags
self._tags_for_future_session: Optional[List[str]] = None

self._env_data_opt_out = os.getenv('AGENTOPS_ENV_DATA_OPT_OUT') and os.getenv(
'AGENTOPS_ENV_DATA_OPT_OUT').lower() == 'true'
self._env_data_opt_out = os.environ.get(
'AGENTOPS_ENV_DATA_OPT_OUT', 'False').lower() == 'true'

try:
self.config = Configuration(api_key=api_key,
Expand Down Expand Up @@ -150,7 +150,7 @@ def add_tags(self, tags: List[str]):
else:
if self._tags_for_future_session:
for tag in tags:
if tag not in self._session.tags:
if tag not in self._tags_for_future_session:
self._tags_for_future_session.append(tag)
else:
self._tags_for_future_session = tags
Expand Down

0 comments on commit e8ba55c

Please sign in to comment.