Skip to content

Commit

Permalink
update version.py file with new json
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason-Dino committed Aug 12, 2024
1 parent 641a0c7 commit 5aace6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ def getLittleVersion():
decode = test.content.decode("utf-8")
res = json.loads(decode)

return res["version"]
return res["stable"]["little"]

def getUserVersion():
with open("setup.json", "r") as f:
setupDir = json.load(f)

return setupDir["version"]
return setupDir["stable"]["main"]

def checkIfBeta():
test = requests.get("https://mason-dino.github.io/StudySync/")
decode = test.content.decode("utf-8")
res = json.loads(decode)

return res["active beta"]
return res["beta"]["active"]

def getJson():
test = requests.get("https://mason-dino.github.io/StudySync/")
Expand Down

0 comments on commit 5aace6b

Please sign in to comment.