Skip to content

Commit

Permalink
Black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
u10313335 committed Jun 14, 2024
1 parent 327c6d3 commit a390013
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions repo2docker/contentproviders/ckan.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta, timezone
from os import path
from urllib.parse import parse_qs, urlparse, urlencode
from urllib.parse import parse_qs, urlencode, urlparse

from requests import Session

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

# handle the activites
if activity_id:
fetch_url = (
f"{spec['api_url']}activity_data_show?" + urlencode({"id": activity_id, "object_type": "package"})
fetch_url = f"{spec['api_url']}activity_data_show?" + urlencode(
{"id": activity_id, "object_type": "package"}
)
else:
fetch_url = f"{spec['api_url']}package_show?" + urlencode({"id": dataset_id})
fetch_url = f"{spec['api_url']}package_show?" + urlencode(
{"id": dataset_id}
)

resp = self.urlopen(
fetch_url,
Expand Down

0 comments on commit a390013

Please sign in to comment.