Skip to content

Commit a390013

Browse files
committed
Black and isort
1 parent 327c6d3 commit a390013

File tree

1 file changed

+6
-4
lines changed
  • repo2docker/contentproviders

1 file changed

+6
-4
lines changed

repo2docker/contentproviders/ckan.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from datetime import datetime, timedelta, timezone
22
from os import path
3-
from urllib.parse import parse_qs, urlparse, urlencode
3+
from urllib.parse import parse_qs, urlencode, urlparse
44

55
from requests import Session
66

@@ -89,11 +89,13 @@ def fetch(self, spec, output_dir, yield_output=False):
8989

9090
# handle the activites
9191
if activity_id:
92-
fetch_url = (
93-
f"{spec['api_url']}activity_data_show?" + urlencode({"id": activity_id, "object_type": "package"})
92+
fetch_url = f"{spec['api_url']}activity_data_show?" + urlencode(
93+
{"id": activity_id, "object_type": "package"}
9494
)
9595
else:
96-
fetch_url = f"{spec['api_url']}package_show?" + urlencode({"id": dataset_id})
96+
fetch_url = f"{spec['api_url']}package_show?" + urlencode(
97+
{"id": dataset_id}
98+
)
9799

98100
resp = self.urlopen(
99101
fetch_url,

0 commit comments

Comments
 (0)