Skip to content

Commit

Permalink
fix: getVersion bad return
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Aug 22, 2019
1 parent e4e99f2 commit 51cb3b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def getVersion():
"""Return last version."""
tags = requests.get(TAGS_SCHEMA_URL).json()
last_tag_name = tags[0]["name"].split(".")
return last_tag_name[0] + "." + last_tag_name[1]
major = ''.join(filter(lambda x: x.isdigit(), last_tag_name[0]))
minor = ''.join(filter(lambda x: x.isdigit(), last_tag_name[1]))
return major + "." + minor


def downloadSchema():
Expand Down

0 comments on commit 51cb3b9

Please sign in to comment.