Skip to content

Commit

Permalink
yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
Chizkiyahu committed Nov 6, 2023
1 parent 9a81372 commit f600835
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clean_ghcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def get_list_packages(owner, repo_name, owner_type, package_names):
for package_name in package_names:
clean_package_name = urllib.parse.quote(package_name, safe='')
url = get_url(
f"/{owner_type}s/{owner}/packages/container/{clean_package_name}")
f"/{owner_type}s/{owner}/packages/container/{clean_package_name}"
)
response = requests.get(url, headers=get_base_headers())
if not response.ok:
if response.status_code == 404:
Expand Down Expand Up @@ -229,7 +230,8 @@ def get_args():
args.repository = args.repository.lower()
args.repository_owner = args.repository_owner.lower()
args.package_names = args.package_names.lower()
args.package_names = [p.strip() for p in args.package_names.split(",")] if args.package_names else []
args.package_names = [p.strip() for p in args.package_names.split(",")
] if args.package_names else []
return args


Expand Down

0 comments on commit f600835

Please sign in to comment.