style: Use f-string instead of format

This commit is contained in:
Gavin D'souza 2020-11-30 15:37:29 +05:30
parent f8fd59b6eb
commit 3e1f6c8103

View file

@ -223,8 +223,8 @@ def check_release_on_github(app: str):
owner = parsed_url.owner
repo = parsed_url.name
# Get latest version from Github
r = requests.get('https://api.github.com/repos/{}/{}/releases'.format(owner, repo))
# Get latest version from GitHub
r = requests.get(f"https://api.github.com/repos/{owner}/{repo}/releases")
if r.ok:
latest_non_beta_release = parse_latest_non_beta_release(r.json())
if latest_non_beta_release: