Skip to content

Commit

Permalink
Fix black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-html-css-js authored and jhutar committed Jan 23, 2024
1 parent aff3e74 commit d79b518
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/opl/shovel.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ def upload(self):
response = requests.get(
f"{self.args.horreum_host}/api/test/byName/{self.args.test_name_horreum}",
headers=headers,
verify=False
verify=False,
)
test_id = json.loads(response.text)["id"]
filter_data = {f"{self.args.test_matcher}": f"{test_matcher}"}
response = requests.get(
f"{self.args.horreum_host}/api/dataset/list/{test_id}",
headers=headers,
params={"filter": json.dumps(filter_data)},
verify=False
verify=False,
)
datasets = response.json().get("datasets", [])
if len(datasets) > 0:
Expand All @@ -212,7 +212,7 @@ def upload(self):
params=params,
headers=headers,
data=json.dumps(values),
verify=False
verify=False,
)

def result(self):
Expand All @@ -234,7 +234,7 @@ def result(self):
values = requests.get(
f"https://{self.args.horreum_host}/api/alerting/variables",
params={"test": self.args.test_id},
verify=False
verify=False,
)
id_array = values.json()
is_fail = 0
Expand All @@ -257,7 +257,7 @@ def result(self):
f"https://{self.args.horreum_host}/api/changes/annotations",
headers={"content-type: application/json"},
data=json.dumps(range_data),
verify=False
verify=False,
)

# Check if the result is not an empty list
Expand Down

0 comments on commit d79b518

Please sign in to comment.