Skip to content

Commit 539efeb

Browse files
feat: update Analysis class to correctly assign analysis_id and environment from environment variables
1 parent 772c952 commit 539efeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tagoio_sdk/modules/Analysis/Analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def context():
120120

121121
context.log = print
122122
context.token = os.environ.get("T_ANALYSIS_TOKEN", "")
123-
context.analysis_id = (JSONParseSafe(os.environ.get("T_ANALYSIS_ENV", "[]"), []),)
124-
context.environment = (os.environ.get("T_ANALYSIS_ID", ""),)
123+
context.analysis_id = os.environ.get("T_ANALYSIS_ID", "")
124+
context.environment = JSONParseSafe(os.environ.get("T_ANALYSIS_ENV", "[]"), [])
125125

126126
data = JSONParseSafe(os.environ.get("T_ANALYSIS_DATA", "[]"), [])
127127

0 commit comments

Comments
 (0)