Skip to content

Commit

Permalink
Fix dictionary lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Szabo committed Dec 11, 2024
1 parent be5fa59 commit b4a092f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tubular/scripts/dd_synthetic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def trigger_synthetic_tests(self, test_requests: [dict]) -> str:
"DD-API-KEY": self.api_key,
"DD-APPLICATION-KEY": self.app_key
}
json_request_body = {"tests": [{"public_id": t.id} for t in test_requests]}
json_request_body = {"tests": [{"public_id": t['id']} for t in test_requests]}
response = requests.post(url, headers=headers, json=json_request_body)

if response.status_code != 200:
Expand Down

0 comments on commit b4a092f

Please sign in to comment.