From 5a966c4873fff85d14341b754b03419053d4619a Mon Sep 17 00:00:00 2001 From: Salamandar <6552989+Salamandar@users.noreply.github.com> Date: Wed, 28 Aug 2024 19:08:27 +0000 Subject: [PATCH] :art: Format Python code with Black --- autoupdate_app_sources/autoupdate_app_sources.py | 4 +++- autoupdate_app_sources/rest_api.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 0da58bd..1ce08cc 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -581,7 +581,9 @@ class AppAutoUpdater: if remote_type == "webpage" and revision_type == "link": api = DownloadPageAPI(upstream) links = api.get_web_page_links() - latest_version_orig, latest_version = self.relevant_versions(list(links.keys()), self.app_id, version_re) + latest_version_orig, latest_version = self.relevant_versions( + list(links.keys()), self.app_id, version_re + ) latest_url = links[latest_version_orig] return latest_version, latest_url, "" diff --git a/autoupdate_app_sources/rest_api.py b/autoupdate_app_sources/rest_api.py index f519318..9c33c48 100644 --- a/autoupdate_app_sources/rest_api.py +++ b/autoupdate_app_sources/rest_api.py @@ -221,5 +221,5 @@ class DownloadPageAPI: return { link.string: urljoin(self.web_page, link.get("href")) - for link in soup.find_all('a') + for link in soup.find_all("a") }