Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune committed Aug 20, 2024
1 parent 30733be commit f2c1eba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gtnh/modpack_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,9 @@ async def update_github_mod_from_repo(self, mod: GTNHModInfo, repo: AttributeDic
mod_updated = True

return mod_updated

async def update_translations_from_repo(self, versionable: Versionable, repo: AttributeDict) -> bool:
log.debug(
f"Checking {Fore.CYAN}{versionable.name}{Fore.RESET} for updates"
)
log.debug(f"Checking {Fore.CYAN}{versionable.name}{Fore.RESET} for updates")

await self.update_versions_from_repo(versionable, repo, for_translation=True)

Expand All @@ -283,7 +281,9 @@ async def get_latest_github_release(self, repo: AttributeDict | str) -> Attribut

return latest_release

async def update_versions_from_repo(self, asset: Versionable, repo: AttributeDict, for_translation: bool = False) -> bool:
async def update_versions_from_repo(
self, asset: Versionable, repo: AttributeDict, for_translation: bool = False
) -> bool:
releases = [AttributeDict(r) async for r in self.gh.getiter(repo_releases_uri(self.org, repo.name))]
if for_translation:
releases = [r for r in releases if r.tag_name.endswith("-latest")]
Expand Down

0 comments on commit f2c1eba

Please sign in to comment.