Skip to content

Commit

Permalink
fixed version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
NYC00kie committed Feb 12, 2022
1 parent 6f62f67 commit 331d4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions versioncontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ def isnotcurrvernewest(currversion: str):
splitversion = version.split(".")
currsplitversion = currversion.split(".")
print(splitversion, currsplitversion)

print(f"{splitversion[0]}.{splitversion[1]}",
f"{currsplitversion[0]}.{currsplitversion[1]}")

if float(f"{splitversion[0]}.{splitversion[1]}") > float(f"{currsplitversion[0]}.{currsplitversion[1]}"):
return True

Expand Down

0 comments on commit 331d4b4

Please sign in to comment.