Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
fix: deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfzxcvbn committed Mar 3, 2024
1 parent 9708e12 commit 23ba062
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyzule.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,17 @@
info = orjson.loads(f.read())

new = orjson.loads(get(
"https://raw.githubusercontent.com/asdfzxcvbn/pyzule/main/version.json")
.content)
"https://raw.githubusercontent.com/asdfzxcvbn/pyzule/main/version.json").content)

# guys please please please update to python 3.12 :pray:
if new["internal"] > info["internal"]:
print("[*] an update is available!")
print(f"[*] update: {info['version']} -> {new['version']}")
print(f"[*] link: https://github.com/asdfzxcvbn/pyzule/releases/tag/{new['version']}")
exit(0)
sys.exit(0)
else:
print("[?] no update detected")
exit(1)
sys.exit(1)

# sanitize paths
try:
Expand Down

0 comments on commit 23ba062

Please sign in to comment.