Skip to content

Commit ee7b02c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 90b6173 commit ee7b02c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

servicex/query_core.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,15 @@ async def get_signed_url(
558558
if self.minio:
559559
# if self.minio exists, self.current_status will too
560560
if self.current_status.files_completed > len(files_seen):
561-
files = await self.servicex.get_transformation_results(self.current_status.request_id)
561+
files = await self.servicex.get_transformation_results(
562+
self.current_status.request_id
563+
)
562564

563565
for file in files:
564-
if 'file-path' not in file:
566+
if "file-path" not in file:
565567
continue
566568

567-
file_path = file['file-path'].replace('/', ':')
569+
file_path = file["file-path"].replace("/", ":")
568570
if file_path not in files_seen:
569571
if signed_urls_only:
570572
download_tasks.append(

servicex/servicex_adapter.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ async def delete_transform(self, transform_id=None):
230230

231231
async def get_transformation_results(self, request_id: str):
232232
headers = await self._get_authorization()
233-
url = self.url + f'/servicex/internal/transformation/{request_id}/results'
233+
url = self.url + f"/servicex/internal/transformation/{request_id}/results"
234234

235235
async with ClientSession() as session:
236236
async with session.get(headers=headers, url=url) as r:
@@ -244,11 +244,9 @@ async def get_transformation_results(self, request_id: str):
244244

245245
if r.status != 200:
246246
msg = await _extract_message(r)
247-
raise RuntimeError(
248-
f"Failed with message: {msg}"
249-
)
247+
raise RuntimeError(f"Failed with message: {msg}")
250248

251-
return (await r.json())['results']
249+
return (await r.json())["results"]
252250

253251
async def cancel_transform(self, transform_id=None):
254252
headers = await self._get_authorization()

0 commit comments

Comments
 (0)