feat: add download_count to releases (#118)

* feat: add download_count to releases

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Ushie
2023-10-28 00:04:42 +03:00
committed by GitHub
parent 500a5896e3
commit 665b913c04
4 changed files with 12 additions and 3 deletions

View File

@@ -70,7 +70,8 @@ class Github(Backend):
async def __assemble_release(release: dict) -> Release:
async def __assemble_asset(asset: dict) -> Asset:
asset_data: dict = keyfilter(
lambda key: key in {"name", "content_type", "browser_download_url"},
lambda key: key
in {"name", "content_type", "download_count", "browser_download_url"},
asset,
)
return Asset(**asset_data)