1
0
Fork 0

🎨 Format Python code with Black

This commit is contained in:
Salamandar 2024-08-28 19:08:27 +00:00
parent 75d50a2a55
commit 5a966c4873
2 changed files with 4 additions and 2 deletions

View file

@ -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, ""

View file

@ -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")
}