🎨 Format Python code with Black
This commit is contained in:
parent
75d50a2a55
commit
5a966c4873
2 changed files with 4 additions and 2 deletions
|
@ -581,7 +581,9 @@ class AppAutoUpdater:
|
||||||
if remote_type == "webpage" and revision_type == "link":
|
if remote_type == "webpage" and revision_type == "link":
|
||||||
api = DownloadPageAPI(upstream)
|
api = DownloadPageAPI(upstream)
|
||||||
links = api.get_web_page_links()
|
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]
|
latest_url = links[latest_version_orig]
|
||||||
return latest_version, latest_url, ""
|
return latest_version, latest_url, ""
|
||||||
|
|
||||||
|
|
|
@ -221,5 +221,5 @@ class DownloadPageAPI:
|
||||||
|
|
||||||
return {
|
return {
|
||||||
link.string: urljoin(self.web_page, link.get("href"))
|
link.string: urljoin(self.web_page, link.get("href"))
|
||||||
for link in soup.find_all('a')
|
for link in soup.find_all("a")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue