add log about the last available version of clients

This commit is contained in:
Il'ya (Marshal) 2022-06-09 13:57:47 +02:00
parent 52870ffc6c
commit 5303f67744

View file

@ -104,9 +104,12 @@ async def get_download_link_of_latest_appcenter_release(parameterized_url: str,
json = await make_req(f'{base_url}/public_releases')
if json and json[0]:
latest_id = json[0]['id']
version = json[0]['version']
else:
return
logger.info(f'The latest appcenter release is {version} ({parameterized_url})')
json = await make_req(f'{base_url}/releases/{latest_id}')
if json:
return json['download_url']