Fix syntax in obsidian checker

This commit is contained in:
Isaac Shoebottom 2024-01-31 10:14:09 -04:00
parent 3b40a9d62f
commit ca5302f42f

View File

@ -20,7 +20,7 @@ INSTALLED_VERSION = ""
with urllib.request.urlopen(API_URL) as url: with urllib.request.urlopen(API_URL) as url:
data = json.loads(url.read().decode()) data = json.loads(url.read().decode())
assets = data["assets"] assets = data["assets"]
for asset in assets for asset in assets:
if asset["name"].endswith(".deb"): if asset["name"].endswith(".deb"):
DEB_NAME = asset["name"] DEB_NAME = asset["name"]
DEB_URL = asset["browser_download_url"] DEB_URL = asset["browser_download_url"]
@ -63,4 +63,4 @@ if semver_check_new(INSTALLED_VERSION, DEB_VERSION):
# Remove the deb file # Remove the deb file
subprocess.run(["rm", DEB_NAME]) subprocess.run(["rm", DEB_NAME])
else: else:
print("No new version available") print("No new version available")